Sha256: c461e5b1e41e441498d5ce216c482c96e26fe2e369f84e7334918b3662956e9a

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

class CreateHistory < ActiveRecord::Migration
  def self.up
    create_table :histories do |t|
      t.text :value
      t.string :label
      t.integer :document_id
      t.timestamps
    end

    add_index :histories, :document_id
    add_index :histories, :label
    add_index :histories, :created_at
        
  end

  def self.down
    drop_table :histories
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_metadata-0.2.2 db/migrate/008_create_history.rb
active_metadata-0.2.1 db/migrate/008_create_history.rb
active_metadata-0.2.0 db/migrate/008_create_history.rb
active_metadata-0.1.9 db/migrate/008_create_history.rb