Added Registrar roles with super, epp, billing

This commit is contained in:
Priit Tark 2015-05-20 19:58:00 +03:00
parent 8371dcf46e
commit 5afa0ac793
12 changed files with 77 additions and 24 deletions

View 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

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150519144118) do
ActiveRecord::Schema.define(version: 20150520163237) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"