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, #range_of_dates_in_order

Methods included from LogTime

included, #log_time, #print_time_diff

Constructor Details

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

Instance Method Details

#createObject



312
313
314
# File 'lib/thredded/database_seeder.rb', line 312

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