Class: CreateSourceFiles

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/s3_cors_fileupload/install/templates/create_source_files.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/s3_cors_fileupload/install/templates/create_source_files.rb', line 2

def change
  create_table :source_files do |t|
    t.string :file_name
    t.string :file_content_type
    t.integer :file_size
    t.string :url
    t.string :key
    t.string :bucket

    t.timestamps
  end
end