mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Attach nameservers directly to domain
This commit is contained in:
parent
98c2717539
commit
eb8de6479e
8 changed files with 22 additions and 36 deletions
|
@ -0,0 +1,8 @@
|
|||
class AddDomainDirectlyToNameserver < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :nameservers, :domain_id, :integer
|
||||
remove_column :nameservers, :ns_set_id
|
||||
drop_table :nameservers_ns_sets
|
||||
drop_table :ns_sets
|
||||
end
|
||||
end
|
8
db/migrate/20140911101604_clean_redundant_fields.rb
Normal file
8
db/migrate/20140911101604_clean_redundant_fields.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class CleanRedundantFields < ActiveRecord::Migration
|
||||
def change
|
||||
drop_table :domain_nameservers
|
||||
remove_column :domains, :admin_contact_id
|
||||
remove_column :domains, :technical_contact_id
|
||||
remove_column :domains, :ns_set_id
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue