From d2c578c689de10e9874d2306663527228be4e2d3 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 4 Dec 2018 06:58:28 +0500 Subject: [PATCH] Add role "superuser" to admin account --- db/seeds.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/seeds.rb b/db/seeds.rb index 3736b2c..4c2bfff 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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,