mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Domain statuses improvements
This commit is contained in:
parent
f43662e8b0
commit
e20944151e
10 changed files with 54 additions and 10 deletions
|
@ -3,6 +3,7 @@ class CreateDomainsStatuses < ActiveRecord::Migration
|
|||
create_table :domain_statuses do |t|
|
||||
t.integer :domain_id
|
||||
t.integer :setting_id
|
||||
t.string :description
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class PopulateDomainStatuses < ActiveRecord::Migration
|
||||
def change
|
||||
SettingGroup.create(code: 'domain_statuses', settings: [
|
||||
sg = SettingGroup.create(code: 'domain_statuses')
|
||||
sg.settings = [
|
||||
Setting.create(code: 'clientDeleteProhibited'.underscore, value: 'clientDeleteProhibited'),
|
||||
Setting.create(code: 'serverDeleteProhibited'.underscore, value: 'serverDeleteProhibited'),
|
||||
Setting.create(code: 'clientHold'.underscore, value: 'clientHold'),
|
||||
|
@ -18,6 +19,7 @@ class PopulateDomainStatuses < ActiveRecord::Migration
|
|||
Setting.create(code: 'pendingRenew'.underscore, value: 'pendingRenew'),
|
||||
Setting.create(code: 'pendingTransfer'.underscore, value: 'pendingTransfer'),
|
||||
Setting.create(code: 'pendingUpdate'.underscore, value: 'pendingUpdate')
|
||||
])
|
||||
]
|
||||
sg.save
|
||||
end
|
||||
end
|
||||
|
|
|
@ -64,6 +64,7 @@ ActiveRecord::Schema.define(version: 20140819103517) do
|
|||
create_table "domain_statuses", force: true do |t|
|
||||
t.integer "domain_id"
|
||||
t.integer "setting_id"
|
||||
t.string "description"
|
||||
end
|
||||
|
||||
create_table "domains", force: true do |t|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue