aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_file/migration.rb
blob: 1c87444dd48df8dc6aa6d2083f88ca166aafc213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class ActiveFile::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