method

create_or_find_by!

Importance_1
v7.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Relation
create_or_find_by!(attributes, &block) public

Like #create_or_find_by, but calls {create!}[rdoc-ref:Persistence::ClassMethods#create!] so an exception is raised if the created record is invalid.

Show source
Register or log in to add new notes.