diff options
| -rw-r--r-- | activestorage/db/update_migrate/20180723000244_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/activestorage/db/update_migrate/20180723000244_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.rb b/activestorage/db/update_migrate/20180723000244_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.rb index 844577d9c8..5472e3c87b 100644 --- a/activestorage/db/update_migrate/20180723000244_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.rb +++ b/activestorage/db/update_migrate/20180723000244_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.rb @@ -2,7 +2,7 @@ class AddForeignKeyConstraintToActiveStorageAttachmentsForBlobId < ActiveRecord:    def up      return if foreign_key_exists?(:active_storage_attachments, column: :blob_id) -    if table_exists?(:active_storage_attachments) && table_exists?(:active_storage_blobs) +    if table_exists?(:active_storage_blobs)        add_foreign_key :active_storage_attachments, :active_storage_blobs, column: :blob_id      end    end | 
