10 lines
229 B
Ruby
10 lines
229 B
Ruby
|
class OrderIdNullAllowedInOrderItems < ActiveRecord::Migration
|
||
|
def up
|
||
|
change_column :order_items, :order_id, :integer, null: true
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
change_column :order_items, :order_id, :integer, null: false
|
||
|
end
|
||
|
end
|