Commit 2987c4dc04c9c6e4005ec17f627e938a0cbf8de4

Authored by Pius Uzamere
1 parent 5f252b60

giving the index a name

db/migrate/20091219054212_create_more_prompt_indexes.rb
1 1 class CreateMorePromptIndexes < ActiveRecord::Migration
2 2 def self.up
3   - add_index :prompts, [:left_choice_id, :right_choice_id, :question_id]
  3 + add_index :prompts, [:left_choice_id, :right_choice_id, :question_id], :name => "a_cool_index"
4 4 end
5 5  
6 6 def self.down
... ...