Map legacy contact fields to contact

This commit is contained in:
Martin Lensment 2015-02-27 18:13:03 +02:00 committed by Priit Tark
parent a598b46723
commit 9cd4bad3a9
5 changed files with 77 additions and 40 deletions

View file

@ -74,8 +74,6 @@ ActiveRecord::Schema.define(version: 20150330083700) do
create_table "contacts", force: :cascade do |t|
t.string "code"
t.string "type"
t.string "reg_no"
t.string "phone"
t.string "email"
t.string "fax"
@ -83,8 +81,6 @@ ActiveRecord::Schema.define(version: 20150330083700) do
t.datetime "updated_at"
t.string "ident"
t.string "ident_type"
t.integer "created_by_id"
t.integer "updated_by_id"
t.string "auth_info"
t.string "name"
t.string "org_name"
@ -97,6 +93,7 @@ ActiveRecord::Schema.define(version: 20150330083700) do
t.string "zip"
t.string "country_code"
t.string "state"
t.integer "legacy_id"
end
add_index "contacts", ["code"], name: "index_contacts_on_code", using: :btree