Replaced address with local and international addr

This commit is contained in:
Andres Keskküla 2014-08-25 17:05:57 +03:00
parent fe54f327d9
commit 2655da4555
16 changed files with 208 additions and 57 deletions

View file

@ -0,0 +1,10 @@
class AddPostalInfoToAddress < ActiveRecord::Migration
def change
add_column :addresses, :name, :string
add_column :addresses, :org_name, :string
add_column :addresses, :type, :string
remove_column :contacts, :name, :string
remove_column :contacts, :org_name, :string
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140819103517) do
ActiveRecord::Schema.define(version: 20140822122938) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -26,11 +26,13 @@ ActiveRecord::Schema.define(version: 20140819103517) do
t.datetime "updated_at"
t.string "street2"
t.string "street3"
t.string "name"
t.string "org_name"
t.string "type"
end
create_table "contacts", force: true do |t|
t.string "code"
t.string "name"
t.string "type"
t.string "reg_no"
t.string "phone"
@ -40,7 +42,6 @@ ActiveRecord::Schema.define(version: 20140819103517) do
t.datetime "updated_at"
t.string "ident"
t.string "ident_type"
t.string "org_name"
t.integer "created_by_id"
t.integer "updated_by_id"
t.string "auth_info"