Commit 94dd8982c2f9828a71cc97b9ed231ab43bd421c6
1 parent
be0b6760
Exists in
master
and in
1 other branch
add index on prompt_id to appearances table
Showing
2 changed files
with
12 additions
and
1 deletions
Show diff stats
db/migrate/20110620185325_add_index_on_prompt_id_to_appearance.rb
0 → 100644
db/schema.rb
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 | # |
10 | 10 | # It's strongly recommended to check this file into your version control system. |
11 | 11 | |
12 | -ActiveRecord::Schema.define(:version => 20110524171217) do | |
12 | +ActiveRecord::Schema.define(:version => 20110620185325) do | |
13 | 13 | |
14 | 14 | create_table "appearances", :force => true do |t| |
15 | 15 | t.integer "voter_id" |
... | ... | @@ -26,6 +26,7 @@ ActiveRecord::Schema.define(:version => 20110524171217) do |
26 | 26 | end |
27 | 27 | |
28 | 28 | add_index "appearances", ["lookup"], :name => "index_appearances_on_lookup" |
29 | + add_index "appearances", ["prompt_id"], :name => "index_appearances_on_prompt_id" | |
29 | 30 | add_index "appearances", ["question_id", "voter_id"], :name => "index_appearances_on_question_id_voter_id" |
30 | 31 | |
31 | 32 | create_table "choices", :force => true do |t| |
... | ... | @@ -250,6 +251,7 @@ ActiveRecord::Schema.define(:version => 20110524171217) do |
250 | 251 | |
251 | 252 | add_index "votes", ["choice_id"], :name => "choice_id_idx" |
252 | 253 | add_index "votes", ["loser_choice_id"], :name => "loser_choice_id_idx" |
254 | + add_index "votes", ["question_id", "created_at"], :name => "question_id_created_at_idx" | |
253 | 255 | add_index "votes", ["question_id"], :name => "question_id_idx" |
254 | 256 | add_index "votes", ["voter_id"], :name => "index_votes_on_voter_id" |
255 | 257 | ... | ... |