mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Transfer refactor
This commit is contained in:
parent
611130addc
commit
ad03165546
13 changed files with 172 additions and 18 deletions
|
@ -0,0 +1,10 @@
|
|||
class PopulateGeneralDomainSettings < ActiveRecord::Migration
|
||||
def change
|
||||
SettingGroup.create(
|
||||
code: 'domain_general',
|
||||
settings: [
|
||||
Setting.create(code: 'transfer_wait_time', value: 0)
|
||||
]
|
||||
)
|
||||
end
|
||||
end
|
14
db/migrate/20140828074404_create_domain_transfer.rb
Normal file
14
db/migrate/20140828074404_create_domain_transfer.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
class CreateDomainTransfer < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :domain_transfers do |t|
|
||||
t.integer :domain_id
|
||||
t.string :status
|
||||
t.datetime :transfer_requested_at
|
||||
t.datetime :transferred_at
|
||||
t.integer :transfer_from_id
|
||||
t.integer :transfer_to_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
class RemoveTransferFieldsFromDomain < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :domains, :transferred_at
|
||||
remove_column :domains, :transfer_requested_at
|
||||
remove_column :domains, :transfer_to
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue