aboutsummaryrefslogblamecommitdiffstats
path: root/lib/active_file/migration.rb
blob: 6e5ed0c997b19fc0a1a3566630733975fb4a15e0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

                                                            
                                          










                                      
class ActiveFile::CreateBlobs < ActiveRecord::Migration[5.2]
  def change
    create_table :active_file_blobs do |t|
      t.string :token
      t.string :filename
      t.string :content_type
      t.integer :byte_size
      t.string :digest
      t.time :created_at

      t.index [ :token ], unique: true
    end
  end
end