mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Refactored whois_body to whois_record
This commit is contained in:
parent
db81a9e7bc
commit
a0c880151b
10 changed files with 68 additions and 46 deletions
9
db/migrate/20150422134243_rename_whois_body.rb
Normal file
9
db/migrate/20150422134243_rename_whois_body.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class RenameWhoisBody < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :whois_bodies, :whois_body, :body
|
||||
rename_column :whois_bodies, :whois_json, :json
|
||||
remove_index :whois_bodies, :domain_id
|
||||
rename_table :whois_bodies, :whois_records
|
||||
add_index :whois_records, :domain_id
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue