Commit 4c5e63b31b2cd3d55d617574f7c69d0d7f89e581

Authored by Pius Uzamere
1 parent b33fca9d

adding an index to choices

db/migrate/20091220142231_add_index_to_choices.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +class AddIndexToChoices < ActiveRecord::Migration
  2 + def self.up
  3 + add_index :choices, [:question_id, :score]
  4 + end
  5 +
  6 + def self.down
  7 + remove_index :choices, [:question_id, :score]
  8 + end
  9 +end
... ...