Commit 2987c4dc04c9c6e4005ec17f627e938a0cbf8de4
1 parent
5f252b60
Exists in
master
and in
1 other branch
giving the index a name
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
db/migrate/20091219054212_create_more_prompt_indexes.rb
| 1 | class CreateMorePromptIndexes < ActiveRecord::Migration | 1 | class CreateMorePromptIndexes < ActiveRecord::Migration |
| 2 | def self.up | 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 | end | 4 | end |
| 5 | 5 | ||
| 6 | def self.down | 6 | def self.down |