Event indices related to #2159
This commit is contained in:
parent
05820516f1
commit
8dec24a33c
2 changed files with 14 additions and 1 deletions
8
db/migrate/20121203154450_add_events_indices.rb
Normal file
8
db/migrate/20121203154450_add_events_indices.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class AddEventsIndices < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :events, :project_id
|
||||
add_index :events, :author_id
|
||||
add_index :events, :action
|
||||
add_index :events, :target_type
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20121123164910) do
|
||||
ActiveRecord::Schema.define(:version => 20121203154450) do
|
||||
|
||||
create_table "events", :force => true do |t|
|
||||
t.string "target_type"
|
||||
|
@ -25,6 +25,11 @@ ActiveRecord::Schema.define(:version => 20121123164910) do
|
|||
t.integer "author_id"
|
||||
end
|
||||
|
||||
add_index "events", ["action"], :name => "index_events_on_action"
|
||||
add_index "events", ["author_id"], :name => "index_events_on_author_id"
|
||||
add_index "events", ["project_id"], :name => "index_events_on_project_id"
|
||||
add_index "events", ["target_type"], :name => "index_events_on_target_type"
|
||||
|
||||
create_table "issues", :force => true do |t|
|
||||
t.string "title"
|
||||
t.integer "assignee_id"
|
||||
|
|
Loading…
Reference in a new issue