feat: Create superadmin in seeds (#1442)
Create SuperAdmin in seeds scripts except on production
This commit is contained in:
parent
942d1fd0af
commit
dffc888f9c
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ user = User.new(name: 'John', email: 'john@acme.inc', password: '123456')
|
||||||
user.skip_confirmation!
|
user.skip_confirmation!
|
||||||
user.save!
|
user.save!
|
||||||
|
|
||||||
|
SuperAdmin.create!(email: 'john@acme.inc', password: '123456') unless Rails.env.production?
|
||||||
|
|
||||||
AccountUser.create!(
|
AccountUser.create!(
|
||||||
account_id: account.id,
|
account_id: account.id,
|
||||||
user_id: user.id,
|
user_id: user.id,
|
||||||
|
|
Loading…
Reference in a new issue