Fix broken migration after strong_migrations 0.6.4 (#7562)
This commit is contained in:
parent
178a049262
commit
f474b380f4
1 changed files with 6 additions and 4 deletions
|
|
@ -2,9 +2,11 @@ class AddListingCategoryToClassifiedListing < ActiveRecord::Migration[5.2]
|
|||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_reference :classified_listings,
|
||||
:classified_listing_category,
|
||||
foreign_key: true,
|
||||
index: { algorithm: :concurrently }
|
||||
safety_assured do
|
||||
add_reference :classified_listings,
|
||||
:classified_listing_category,
|
||||
foreign_key: true,
|
||||
index: { algorithm: :concurrently }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue