1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class ActiveVault::CreateBlobs < ActiveRecord::Migration[5.1] def change create_table :rails_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 end end