Providing temporal scopes for an ActiveRecord model to allow queries by time.