mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Make migration reversible
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
class AddNotNullToVariantOverrideRelations < ActiveRecord::Migration
|
||||
def change
|
||||
def up
|
||||
change_column :variant_overrides, :hub_id, :integer, null: false
|
||||
change_column :variant_overrides, :variant_id, :integer, null: false
|
||||
end
|
||||
|
||||
def down
|
||||
change_column :variant_overrides, :hub_id, :integer, null: true
|
||||
change_column :variant_overrides, :variant_id, :integer, null: true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user