mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
Map legacy contact fields to contact
This commit is contained in:
parent
a598b46723
commit
9cd4bad3a9
5 changed files with 77 additions and 40 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue