Class: Thredded::DatabaseSeeder::FirstUser

Inherits:
FirstSeedData show all
Defined in:
lib/thredded/database_seeder.rb

Constant Summary collapse

MODEL_CLASS =
User

Instance Attribute Summary

Attributes inherited from BaseSeedData

#seeder

Instance Method Summary collapse

Methods inherited from FirstSeedData

#find

Methods inherited from BaseSeedData

create, #find_or_create, #initialize

Constructor Details

This class inherits a constructor from Thredded::DatabaseSeeder::BaseSeedData

Instance Method Details

#createObject



185
186
187
188
# File 'lib/thredded/database_seeder.rb', line 185

def create
  log 'Creating first user...'
  FactoryBot.create(:user, :approved, :admin, name: 'Joe', email: '[email protected]')
end