Sha256: e0738466205971f4f31c6ef9dc2c1e98fe96c9e1d1af0657113d3d4171174555
Contents?: true
Size: 390 Bytes
Versions: 94
Compression:
Stored size: 390 Bytes
Contents
# This migration comes from active_storage (originally 20180723000244) class AddForeignKeyToActiveStorageForBlobId < 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
94 entries across 94 versions & 1 rubygems