Sha256: c8cbb7c88dae83b58d78156dc6a263d156a81cd0d1cd555c649bb8a734b156fe
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
class ActiveStorage::CreateTables < ActiveRecord::Migration[5.1] def change create_table :active_storage_blobs do |t| t.string :key t.string :filename t.string :content_type t.text :metadata t.integer :byte_size t.string :checksum t.time :created_at t.index [ :key ], unique: true end create_table :active_storage_attachments do |t| t.string :name t.string :record_gid t.integer :blob_id t.time :created_at t.index :record_gid t.index :blob_id t.index [ :record_gid, :name ] t.index [ :record_gid, :blob_id ], unique: true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activestorage-0.1 | lib/active_storage/migration.rb |