Rails 7 allows setting timestamps on insert_all/upsert_all record creation | Saeloun Blog

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 #blog #record https://rubyonrails.ba/single/rails-7-allows-setting-timestamps-on-insert_all-upsert_all-record-creation-saeloun-blog

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles