method
find_or_create_by!
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::Relation
find_or_create_by!(attributes, &block)public
Like find_or_create_by, but calls create! so an exception is raised if the created record is invalid.
find_or_create_by!(attributes, &block)Like find_or_create_by, but calls create! so an exception is raised if the created record is invalid.