20091220142231_add_index_to_choices.rb 194 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 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