Method: ActiveRecord::InsertAll#execute
- Defined in:
- activerecord/lib/active_record/insert_all.rb
#execute ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'activerecord/lib/active_record/insert_all.rb', line 48 def execute return ActiveRecord::Result.empty if inserts.empty? = +"#{model} " << "Bulk " if inserts.many? << (on_duplicate == :update ? "Upsert" : "Insert") connection.exec_insert_all to_sql, end |