internetee-registry/db/migrate/20150227092508_add_legacy_columns_for_contact.rb
2021-04-26 18:54:26 +05:00

9 lines
332 B
Ruby

class AddLegacyColumnsForContact < ActiveRecord::Migration[6.0]
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