diff --git a/db/migrate/20091220142231_add_index_to_choices.rb b/db/migrate/20091220142231_add_index_to_choices.rb new file mode 100644 index 0000000..a117d42 --- /dev/null +++ b/db/migrate/20091220142231_add_index_to_choices.rb @@ -0,0 +1,9 @@ +class AddIndexToChoices < ActiveRecord::Migration + def self.up + add_index :choices, [:question_id, :score] + end + + def self.down + remove_index :choices, [:question_id, :score] + end +end -- libgit2 0.21.2