20151222003146_changes_customerscolumns.rb 200 B

123456
  1. class ChangesCustomerscolumns < ActiveRecord::Migration
  2. def change
  3. add_column :customers, :contact_id, :integer, index:true, foreign_key: true
  4. remove_column :contacts, :customer_id
  5. end
  6. end