Skip to content

Commit

Permalink
add index
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasc committed Aug 14, 2014
1 parent fa01774 commit 9bf9056
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mongoid_traffic/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class Log

scope :scoped_to, -> scope { where(scope: scope) }

# ---------------------------------------------------------------------

index({ scope: 1, date_from: 1, date_to: 1 })

# =====================================================================

def self.aggregate_on att
Expand Down

0 comments on commit 9bf9056

Please sign in to comment.