Sha256: 976e63eb4ed8096125093201352e8ee3122dc977940e1ac0f5971f330899d7cc
Contents?: true
Size: 403 Bytes
Versions: 3
Compression:
Stored size: 403 Bytes
Contents
# This migration comes from active_storage (originally 20180723000244) class AddFkConstraintToActiveStorageAttachmentsForBlobId < 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
Version data entries
3 entries across 3 versions & 1 rubygems