class CreateOrders < ActiveRecord::Migration[5.0]
  def change
    create_table :orders do |t|

      t.timestamps
    end
  end
end

class CreateOrders < ActiveRecord::Migration[5.0]
  def change
    create_table :orders do |t|
      t.integer :user_id

      t.timestamps
    end
  end
end

Edit migration, add :user_id to Orders table
Edit migration, add :user_id to Orders table
