aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_vault/migration.rb
blob: b3c66428ceb3bc1ce017034bd0445929c76b6e3e (plain) (blame)
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