Class: Thredded::DatabaseSeeder::FirstUser
- Inherits:
-
FirstSeedData
- Object
- BaseSeedData
- FirstSeedData
- Thredded::DatabaseSeeder::FirstUser
- Defined in:
- lib/thredded/database_seeder.rb
Constant Summary collapse
- MODEL_CLASS =
User
Instance Attribute Summary
Attributes inherited from BaseSeedData
Instance Method Summary collapse
Methods inherited from FirstSeedData
Methods inherited from BaseSeedData
create, #find_or_create, #initialize
Constructor Details
This class inherits a constructor from Thredded::DatabaseSeeder::BaseSeedData
Instance Method Details
#create ⇒ Object
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 |