internetee-registry/db/migrate/20150227092508_add_legacy_columns_for_contact.rb
2015-04-02 11:39:35 +03:00

9 lines
327 B
Ruby

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