INSERT_ALL TO ACTIVERECORD MODELS User.insert_all([ { id: 1, name: 'a', created_at: Time.current, updated_at: Ti { id: 1, name: 'b', created_at: Time.current, updated_at: Ti ]) # => INSERT INTO "users"("id","name","created_at","updated_at" User.insert_all!([ { id: 1, name: 'a', created_at: Time.current, updated_at: Ti { id: 1, name: 'b', created_at: Time.current, updated_at: Ti ]) # => INSERT INTO "users"("id","name","created_at","updated_at" # => ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR