Merge pull request #36915 from bogdanvlviv/remove-active_storage-migration-related-to-rails-6-0-update

Remove `AddForeignKeyConstraintToActiveStorageAttachmentsForBlobId` migration
This commit is contained in:
Rafael França 2019-08-12 17:17:10 -04:00 committed by GitHub
commit 16b09a8eec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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