FEATURE: Read Faq badge

This commit is contained in:
Sam
2014-07-11 17:32:29 +10:00
parent 167a2a68e6
commit 833c50c460
7 changed files with 56 additions and 0 deletions

View File

@ -12,12 +12,19 @@ class Badge < ActiveRecord::Base
FirstFlag = 13
FirstLink = 14
FirstQuote = 15
ReadFaq = 16
# other consts
AutobiographerMinBioLength = 10
module Queries
ReadFaq = <<SQL
SELECT user_id, read_faq
WHERE read_faq IS NOT NULL
SQL
FirstQuote = <<SQL
SELECT l.user_id, l.post_id, l.created_at granted_at
FROM