1
0
Fork 0

Add role "superuser" to admin account

This commit is contained in:
Alex Kotov 2018-12-04 06:58:28 +05:00
parent fdbd1a12c0
commit d2c578c689
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
1 changed files with 1 additions and 0 deletions

View File

@ -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,