mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +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
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue