method

insert!

Importance_1
v6.1.7.7 - Show latest stable - 0 notes - Class: ClassMethods
insert!(attributes, returning: nil) public

Inserts a single record into the database in a single SQL INSERT statement. It does not instantiate any models nor does it trigger Active Record callbacks or validations. Though passed values go through Active Record’s type casting and serialization.

See ActiveRecord::Persistence#insert_all! for more.

Show source
Register or log in to add new notes.