Rails create create default database records
Yeah! you are on right path but we can improve it like :

class User &lt; ActiveRecord::Base
  has_many :accounts

  after_save do
    self.accounts.create([{name: "Repairs"}, {name: "Supplies"}])
  end
end


Hopefully! This will help.