vrfs774: added musicians_geocoded scope

This commit is contained in:
Jonathan Kolyer 2013-11-23 06:15:49 -06:00
parent d9823eac3a
commit 58bed4bc04
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ module JamRuby
validate :update_email_case_insensitive_uniqueness, :if => :updating_email
scope :musicians, where(:musician => true)
scope :musicians_geocoded, where(['musician = ? AND lat IS NOT NULL AND lng IS NOT NULL',true])
def user_progression_fields
@user_progression_fields ||= Set.new ["first_downloaded_client_at", "first_ran_client_at", "first_music_session_at", "first_real_music_session_at", "first_good_music_session_at", "first_certified_gear_at", "first_invited_at", "first_friended_at", "first_social_promoted_at" ]