mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Merging master branch into require_standard_variant
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddInheritsPropertiesToProduct < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :spree_products, :inherits_properties, :boolean, null: false, default: true
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class AddDefaultAndNotNullToProducerPropertiesPosition < ActiveRecord::Migration
|
||||
def change
|
||||
ProducerProperty.where(position: nil).each do |producer_property|
|
||||
producer_property.update_attribute(:position, 0)
|
||||
end
|
||||
|
||||
change_column :producer_properties, :position, :integer, null: false, default: 0
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user