Add role "superuser" to admin account
This commit is contained in:
parent
fdbd1a12c0
commit
d2c578c689
|
@ -11,6 +11,7 @@ country_state_names.each do |name|
|
|||
end
|
||||
|
||||
admin_account = Account.create!
|
||||
admin_account.add_role :superuser
|
||||
admin_account.create_user!(
|
||||
email: Rails.application.credentials.initial_admin_email,
|
||||
password: Rails.application.credentials.initial_admin_password,
|
||||
|
|
Reference in New Issue