Sha256: 6d0a6bb2f7175d3cd137a23f31038fa725959567cac7901216aa085dd69e2212

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

# This migration comes from active_storage (originally 20191206030411)
class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.1]
  def up
    create_table :active_storage_variant_records do |t|
      t.belongs_to :blob, null: false, index: false
      t.string :variation_digest, null: false

      t.index %i[ blob_id variation_digest ], name: "index_active_storage_variant_records_uniqueness",
                                              unique: true
      t.foreign_key :active_storage_blobs, column: :blob_id
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ckeditor-5.1.3 test/dummy/db/migrate/20240702124877_create_active_storage_variant_records.rb
ckeditor-5.1.2 test/dummy/db/migrate/20240702124877_create_active_storage_variant_records.rb