method

before_create

before_create
public

Registers a callback to be called before a record is created. See ActiveRecord::Callbacks for more information.