mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Merged the address types
This commit is contained in:
parent
7c8e7e22af
commit
c4deed6a55
17 changed files with 90 additions and 103 deletions
5
db/migrate/20140925073340_remove_address_type.rb
Normal file
5
db/migrate/20140925073340_remove_address_type.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class RemoveAddressType < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :addresses, :type, :string
|
||||
end
|
||||
end
|
8
db/migrate/20140925073734_add_name_to_contact.rb
Normal file
8
db/migrate/20140925073734_add_name_to_contact.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class AddNameToContact < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :addresses, :name, :string
|
||||
remove_column :addresses, :org_name, :string
|
||||
add_column :contacts, :name, :string
|
||||
add_column :contacts, :org_name, :string
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue