mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Refactor roles
This commit is contained in:
parent
b527221baf
commit
b0eb6798b0
16 changed files with 155 additions and 223 deletions
|
@ -61,9 +61,5 @@ User.where(
|
|||
country: Country.where(name: 'Estonia').first
|
||||
).first_or_create
|
||||
|
||||
Role.create(code: 'admin')
|
||||
Role.create(code: 'user')
|
||||
Role.create(code: 'customer_service')
|
||||
|
||||
User.update_all(role_id: Role.first.id)
|
||||
User.update_all(roles: ['admin'])
|
||||
# Setting.whois_enabled = true only uncomment this if you wish whois
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue