tap/db/migrate/20150209144839_not_null_fields.rb
2015-02-09 17:06:24 +01:00

6 lines
201 B
Ruby

class NotNullFields < ActiveRecord::Migration
def change
change_column :order_items, :product_id, :integer, null: false
change_column :order_items, :order_id, :integer, null: false
end
end