mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove Delete on Cascade from Migrations
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddForeignKeyToTagRulesEnterprises < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_foreign_key :enterprises, :spree_addresses, column: :business_address_id
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddForeignKeyToSpreeStockItemsSpreeStockLocations < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_foreign_key :spree_stock_items, :spree_stock_locations, column: :stock_location_id
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddForeignKeyToSpreeStockItemsSpreeVariants < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_foreign_key :spree_stock_items, :spree_variants, column: :variant_id
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddForeignKeyToSpreeStockMovementsSpreeStockItems < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_foreign_key :spree_stock_movements, :spree_stock_items, column: :stock_item_id
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddForeignKeyToStripeAccountsEnterprises < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_foreign_key :stripe_accounts, :enterprises, column: :enterprise_id
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddForeignKeyToTagRulesEnterprises < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_foreign_key :tag_rules, :enterprises, column: :enterprise_id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user