Merge pull request #36915 from bogdanvlviv/remove-active_storage-migration-related-to-rails-6-0-update
Remove `AddForeignKeyConstraintToActiveStorageAttachmentsForBlobId` migration
This commit is contained in:
commit
16b09a8eec
@ -1,9 +0,0 @@
|
||||
class AddForeignKeyConstraintToActiveStorageAttachmentsForBlobId < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
return if foreign_key_exists?(:active_storage_attachments, column: :blob_id)
|
||||
|
||||
if table_exists?(:active_storage_blobs)
|
||||
add_foreign_key :active_storage_attachments, :active_storage_blobs, column: :blob_id
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user