Merged the address types

This commit is contained in:
Andres Keskküla 2014-09-25 15:27:08 +03:00
parent 7c8e7e22af
commit c4deed6a55
17 changed files with 90 additions and 103 deletions

View file

@ -0,0 +1,5 @@
class RemoveAddressType < ActiveRecord::Migration
def change
remove_column :addresses, :type, :string
end
end

View 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