Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
lowering range of admin dashboard to 7; adding user created_at index
Browse files Browse the repository at this point in the history
  • Loading branch information
nonword committed Nov 11, 2015
1 parent 62c7c7e commit 982745d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def self.current

def calc_stats
# amount of days to calculate statistics for
range_in_days = 60
range_in_days = 7
datetime_format = "%Y-%m-%d %H:%M"

# determine date range
Expand Down
1 change: 1 addition & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class User

after_create :apply_configured_user_role

index({created_at: 1}, {background: true})

## Confirmable
# field :confirmation_token, :type => String
Expand Down
1 change: 1 addition & 0 deletions lib/tasks/project.rake
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ namespace :project do
Workflow.create_indexes
Favourite.create_indexes
Classification.create_indexes
User.create_indexes

# Create a bunch of project-specific indexes:
project = Project.current
Expand Down

0 comments on commit 982745d

Please sign in to comment.