Rename Read Faq, Read Guidelines

This commit is contained in:
Sam 2014-07-16 16:26:22 +10:00
parent 4f3f61121a
commit 5ad519e2bc
3 changed files with 7 additions and 7 deletions

View file

@ -12,7 +12,7 @@ class Badge < ActiveRecord::Base
FirstFlag = 13 FirstFlag = 13
FirstLink = 14 FirstLink = 14
FirstQuote = 15 FirstQuote = 15
ReadFaq = 16 ReadGuidelines = 16
Reader = 17 Reader = 17
# other consts # other consts
@ -38,7 +38,7 @@ class Badge < ActiveRecord::Base
) )
SQL SQL
ReadFaq = <<SQL ReadGuidelines = <<SQL
SELECT user_id, read_faq granted_at SELECT user_id, read_faq granted_at
FROM user_stats FROM user_stats
WHERE read_faq IS NOT NULL WHERE read_faq IS NOT NULL

View file

@ -2000,8 +2000,8 @@ en:
first_quote: first_quote:
name: First Quote name: First Quote
description: Quoted a user description: Quoted a user
read_faq: read_guidelines:
name: Read Faq name: Read Guidelines
description: Read the community guidelines description: Read the community guidelines
reader: reader:
name: Reader name: Reader

View file

@ -29,12 +29,12 @@ Badge.seed do |b|
end end
Badge.seed do |b| Badge.seed do |b|
b.id = Badge::ReadFaq b.id = Badge::ReadGuidelines
b.name = "Read Faq" b.name = "Read Guidelines"
b.badge_type_id = BadgeType::Bronze b.badge_type_id = BadgeType::Bronze
b.multiple_grant = false b.multiple_grant = false
b.target_posts = false b.target_posts = false
b.query = Badge::Queries::ReadFaq b.query = Badge::Queries::ReadGuidelines
end end
Badge.seed do |b| Badge.seed do |b|