Sha256: 5f8e4f020dd74f0a94e856c72bb822a340466eaeded6f3e0bce51cad40af757e

Contents?: true

Size: 297 Bytes

Versions: 3

Compression:

Stored size: 297 Bytes

Contents

class AddIndexOnTables < ActiveRecord::Migration
  def change
    change_table :formol_posts do |t|
      t.index :topic_id
    end
    
    change_table :formol_topics do |t|
      t.index :forum_id
    end
    
    change_table :formol_forums do |t|
      t.index :category_id
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formol-0.0.6 db/migrate/20111221151653_add_index_on_tables.rb
formol-0.0.5 db/migrate/20111221151653_add_index_on_tables.rb
formol-0.0.4 db/migrate/20111221151653_add_index_on_tables.rb