20091219050747_add_index_to_prompts.rb 220 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 class AddIndexToPrompts < ActiveRecord::Migration def self.up add_index :prompts, [:left_choice_id, :right_choice_id] end def self.down remove_index :prompts, [:left_choice_id, :right_choice_id] end end