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

View file

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

View file

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