mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Added Registrar roles with super, epp, billing
This commit is contained in:
parent
8371dcf46e
commit
5afa0ac793
12 changed files with 77 additions and 24 deletions
7
db/migrate/20150520163237_add_defalut_role.rb
Normal file
7
db/migrate/20150520163237_add_defalut_role.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class AddDefalutRole < ActiveRecord::Migration
|
||||
def change
|
||||
ApiUser.all.each do |u|
|
||||
u.update_column :roles, ['super'] if u.roles.blank?
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue