FIX: faster update of all badges

Introduced badge triggers, introduced concept of badge that happens due to a post but has the post hidden

Delta badge grant happens once a minute, backed by redis
This commit is contained in:
Sam
2014-07-23 11:42:24 +10:00
parent 007310c4a2
commit 0f9678fe49
18 changed files with 229 additions and 121 deletions

View File

@@ -0,0 +1,6 @@
class AddShowPostsToBadges < ActiveRecord::Migration
def change
# show posts to users on badge show page
add_column :badges, :show_posts, :boolean, null: false, default: false
end
end