Sha256: 0ac99aaa1ae712829b0abfe65eb819afb25258aea2d1c542e9ecb7c4bca9ed09

Contents?: true

Size: 504 Bytes

Versions: 4

Compression:

Stored size: 504 Bytes

Contents

# This migration comes from active_storage (originally 20191206030411)
class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0]
  def change
    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

4 entries across 4 versions & 2 rubygems

Version Path
action_mailbox_amazon_ingress-0.2.0 db/migrate/20210413173651_create_active_storage_variant_records.active_storage.rb
action_mailbox_amazon_ingress-0.1.3 db/migrate/20210413173651_create_active_storage_variant_records.active_storage.rb
action_mailbox_amazon_ingress-0.1.2 db/migrate/20210413173651_create_active_storage_variant_records.active_storage.rb
wobapphelpers-4.2.0 test/dummy/db/migrate/20201224095624_create_active_storage_variant_records.active_storage.rb