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

@ -1,5 +1,9 @@
class AddLegacyColumnsForContact < ActiveRecord::Migration
def change
add_column :contacts, :legacy_id, :integer
remove_column :contacts, :type, :string
remove_column :contacts, :reg_no, :string
remove_column :contacts, :created_by_id, :integer
remove_column :contacts, :updated_by_id, :integer
end
end