Sha256: 91161fe88686f356f749c3b74078e26154b374c7af82a4d06d8214155715631f

Contents?: true

Size: 425 Bytes

Versions: 15

Compression:

Stored size: 425 Bytes

Contents

class CreateFileAttachments < ActiveRecord::Migration
  def self.up
    create_table :file_share_file_attachments do |t|
      t.string :name
      t.text :description
      t.string :filepath
      t.integer :attachable_id
      t.string :attachable_type

      t.timestamps
    end
    
    add_index :file_share_file_attachments, :attachable_id
  end

  def self.down
    drop_table :file_share_file_attachments
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
file_share-0.1.16 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.15 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.13 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.12 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.11 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.9 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.8 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.7 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.6 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.5 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.4 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.3 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.2 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.1 db/migrate/20101020002635_create_file_attachments.rb
file_share-0.1.0 db/migrate/20101020002635_create_file_attachments.rb