Refactor roles

This commit is contained in:
Martin Lensment 2015-01-20 17:49:14 +02:00
parent b527221baf
commit b0eb6798b0
16 changed files with 155 additions and 223 deletions

View file

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