Upgrade to Rails 6.0.0.

This commit is contained in:
evazion
2019-08-22 20:06:54 -05:00
parent 371182b102
commit 3f86a60457
11 changed files with 196 additions and 74 deletions

View File

@@ -0,0 +1,10 @@
# This migration comes from active_storage (originally 20180723000244)
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