Commit 1d9bf2f0838b8dc8281d9fd8f1e0ed7670bab245

Authored by Rodrigo Souto
1 parent f132c4e1

db-schema: Add tasks new indexes

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 # 9 #
10 # It's strongly recommended to check this file into your version control system. 10 # It's strongly recommended to check this file into your version control system.
11 11
12 -ActiveRecord::Schema.define(:version => 20140408172149) do 12 +ActiveRecord::Schema.define(:version => 20140505131703) do
13 13
14 create_table "abuse_reports", :force => true do |t| 14 create_table "abuse_reports", :force => true do |t|
15 t.integer "reporter_id" 15 t.integer "reporter_id"
@@ -587,7 +587,12 @@ ActiveRecord::Schema.define(:version => 20140408172149) do @@ -587,7 +587,12 @@ ActiveRecord::Schema.define(:version => 20140408172149) do
587 t.boolean "spam", :default => false 587 t.boolean "spam", :default => false
588 end 588 end
589 589
  590 + add_index "tasks", ["requestor_id"], :name => "index_tasks_on_requestor_id"
590 add_index "tasks", ["spam"], :name => "index_tasks_on_spam" 591 add_index "tasks", ["spam"], :name => "index_tasks_on_spam"
  592 + add_index "tasks", ["status"], :name => "index_tasks_on_status"
  593 + add_index "tasks", ["target_id", "target_type"], :name => "index_tasks_on_target_id_and_target_type"
  594 + add_index "tasks", ["target_id"], :name => "index_tasks_on_target_id"
  595 + add_index "tasks", ["target_type"], :name => "index_tasks_on_target_type"
591 596
592 create_table "terms_forum_people", :id => false, :force => true do |t| 597 create_table "terms_forum_people", :id => false, :force => true do |t|
593 t.integer "forum_id" 598 t.integer "forum_id"