Class: CreateS3MultipartUploads

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/s3_multipart/templates/uploads_table_migration.rb

Overview

This migration comes from s3_multipart

Instance Method Summary collapse

Instance Method Details

#changeObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/s3_multipart/templates/uploads_table_migration.rb', line 3

def change
  create_table :s3_multipart_uploads do |t|
    t.string :location
    t.string :upload_id
    t.string :key
    t.string :name
    t.string :uploader
    t.integer :size
    # additional options useful for constructing associations for the uploaded model
    t.text :context

    t.timestamps
  end
end