1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class ActiveVault::CreateBlobs < ActiveRecord::Migration[5.1] def change t.string :key t.string :filename t.string :content_type t.text :metadata create_table :active_vault_blobs do |t| t.integer :byte_size t.string :checksum t.time :created_at t.index [ :key ], unique: true end end end