Sha256: 1daa164a15e36776d71b62926909d89289d8340b9e1266f774e885a4b1e1331b

Contents?: true

Size: 592 Bytes

Versions: 4

Compression:

Stored size: 592 Bytes

Contents

class CreateAttachment < ActiveRecord::Migration
  def self.up
    create_table :attachments do |t|
      t.string :label
      t.integer :document_id
      t.integer :created_by
      t.integer :updated_by
      t.integer :counter
      t.string :attach_file_name
      t.string :attach_content_type
      t.integer :attach_file_size
      t.datetime :attach_updated_at
      t.timestamps
    end

    add_index :attachments, :document_id
    add_index :attachments, :label
    add_index :attachments, :attach_updated_at
        
  end

  def self.down
    drop_table :attachments
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_metadata-0.2.2 db/migrate/010_create_attachment.rb
active_metadata-0.2.1 db/migrate/010_create_attachment.rb
active_metadata-0.2.0 db/migrate/010_create_attachment.rb
active_metadata-0.1.9 db/migrate/010_create_attachment.rb