mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +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
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140911101604) do
|
||||
ActiveRecord::Schema.define(version: 20140925073734) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -26,9 +26,6 @@ ActiveRecord::Schema.define(version: 20140911101604) do
|
|||
t.datetime "updated_at"
|
||||
t.string "street2"
|
||||
t.string "street3"
|
||||
t.string "name"
|
||||
t.string "org_name"
|
||||
t.string "type"
|
||||
end
|
||||
|
||||
create_table "contact_disclosures", force: true do |t|
|
||||
|
@ -60,6 +57,8 @@ ActiveRecord::Schema.define(version: 20140911101604) do
|
|||
t.integer "created_by_id"
|
||||
t.integer "updated_by_id"
|
||||
t.string "auth_info"
|
||||
t.string "name"
|
||||
t.string "org_name"
|
||||
end
|
||||
|
||||
create_table "countries", force: true do |t|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue