OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20160503150449_add_indexes_...

10 lines
407 B

class AddIndexesForLatestActivity < ActiveRecord::Migration
def change
add_index :work_packages, [:project_id, :updated_at]
add_index :news, [:project_id, :created_on]
add_index :changesets, [:repository_id, :committed_on]
add_index :wiki_contents, [:page_id, :updated_on]
add_index :messages, [:board_id, :updated_on]
add_index :time_entries, [:project_id, :updated_on]
end
end