Sha256: 53ebf59a821418751ec3234a69e54a023ffbe904b311df7f44584ac5947e9187

Contents?: true

Size: 411 Bytes

Versions: 4

Compression:

Stored size: 411 Bytes

Contents

class CreateNotes < ActiveRecord::Migration
  def self.up
    create_table :notes do |t|
      t.text :note
      t.string :label
      t.integer :document_id
      t.integer :created_by
      t.integer :updated_by      
      t.timestamps
    end

    add_index :notes, :document_id
    add_index :notes, :label
    add_index :notes, :updated_at
        
  end

  def self.down
    drop_table :notes
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_metadata-0.2.2 db/migrate/007_create_notes.rb
active_metadata-0.2.1 db/migrate/007_create_notes.rb
active_metadata-0.2.0 db/migrate/007_create_notes.rb
active_metadata-0.1.9 db/migrate/007_create_notes.rb