Sha256: 1d0c0a53e899cf152742b7da0165141175663600f24d2013c7341cc58a434e9b

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 Bytes

Contents

class CreateAttachments < ActiveRecord::Migration
  create_table :attachments do |t|
    t.references :attachable ,:polymorphic => {:default => 'Page'}
    t.string :name
    t.string :file
    t.string :content_type
    t.string :original_filename
    t.string :description
    t.string :secure_token
    t.integer :file_size
    t.integer :position

    t.timestamps
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
amalgam-2.1.4 spec/dummy/db/migrate/20120920033135_create_attachments.rb
amalgam-2.1.3.1 spec/dummy/db/migrate/20120920033135_create_attachments.rb
amalgam-2.1.3 spec/dummy/db/migrate/20120920033135_create_attachments.rb
amalgam-2.1.2 spec/dummy/db/migrate/20120920033135_create_attachments.rb
amalgam-2.1.1 spec/dummy/db/migrate/20120920033135_create_attachments.rb