Rails 7 allows setting timestamps on insert_all/upsert_all record creation | Saeloun Blog
18-Jan-2022 1728
ActiveRecord is one of the most useful utilities in the Rails toolkit. It allows us to perform complex database queries while abstracting the adapter, essentially making a database “pluggable”.However, some edge cases stand out like a sore thumb. One such query is the ability to set values to the standard Rails timestamps which are available across models. Namely, created_at, created_on, updated_at, updated_on.
Rails 7 allows setting timestamps on insert_all/upsert_all record creation | Saeloun Blog #ruby #rubydeveloper #rubyonrails #Rails #allows #setting #timestamps #insert_all/upsert_all #record #creation #Saeloun #blog #record https://rubyonrails.ba/link/rails-7-allows-setting-timestamps-on-insert_all-upsert_all-record-creation-saeloun-blog