tap/db/migrate/20150209144839_not_null_fields.rb

7 lines
201 B
Ruby
Raw Normal View History

2015-02-09 16:06:24 +00:00
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