mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 02:05:57 +02:00
Refactor statuses to static
This commit is contained in:
parent
5f277ae2bb
commit
710ac1db92
5 changed files with 47 additions and 13 deletions
10
db/migrate/20140902121843_refactor_domain_statuses.rb
Normal file
10
db/migrate/20140902121843_refactor_domain_statuses.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class RefactorDomainStatuses < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :domain_statuses, :value, :string
|
||||
remove_column :domain_statuses, :setting_id
|
||||
|
||||
sg = SettingGroup.find_by(code: 'domain_statuses')
|
||||
sg.settings.delete_all
|
||||
sg.delete
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140828133057) do
|
||||
ActiveRecord::Schema.define(version: 20140902121843) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -84,8 +84,8 @@ ActiveRecord::Schema.define(version: 20140828133057) do
|
|||
|
||||
create_table "domain_statuses", force: true do |t|
|
||||
t.integer "domain_id"
|
||||
t.integer "setting_id"
|
||||
t.string "description"
|
||||
t.string "value"
|
||||
end
|
||||
|
||||
create_table "domain_transfers", force: true do |t|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue