From b7ded5be5fac1ec080ea7522f2a47d44e897bd41 Mon Sep 17 00:00:00 2001 From: Pius Uzamere Date: Sat, 19 Dec 2009 00:53:14 -0500 Subject: [PATCH] giving the index a name --- db/migrate/20091219054212_create_more_prompt_indexes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20091219054212_create_more_prompt_indexes.rb b/db/migrate/20091219054212_create_more_prompt_indexes.rb index baf5058..c2517cc 100644 --- a/db/migrate/20091219054212_create_more_prompt_indexes.rb +++ b/db/migrate/20091219054212_create_more_prompt_indexes.rb @@ -1,6 +1,6 @@ class CreateMorePromptIndexes < ActiveRecord::Migration def self.up - add_index :prompts, [:left_choice_id, :right_choice_id, :question_id], :name => "a_cool_index" + add_index :prompts, [:left_choice_id, :right_choice_id, :question_id], :name => "a_cool_index", :unique => true end def self.down -- libgit2 0.21.2