Flowdock
method

first_or_create!

Importance_1
v3.2.1 - Show latest stable - 0 notes - Class: ActiveRecord::Relation
first_or_create!(attributes = nil, options = {}, &block) public

Like first_or_create but calls create! so an exception is raised if the created record is invalid.

Expects arguments in the same format as Base.create!.

Show source
Register or log in to add new notes.