Rails 6 Rails 6 added an upsert and upsert_all methods that deliver this functionality. Model.upsert(column_name: value) [upsert] It does not instantiate any models nor does it trigger Active Record callbacks or validations. Rails 5, 4, and 3 Not if you are looking for an "upsert" (where the database executes an update or an insert statement in the same operation) type of statement. Out of the box
