Rename Read Faq, Read Guidelines
This commit is contained in:
parent
4f3f61121a
commit
5ad519e2bc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue