Add 'post as moderator' option for comments.

* Add 'post as moderator' option to comment form. This creates a so-called sticky comment.
* Downvotes have no effect on stickied comments; they're always visible, regardless of comment thresholds.
* Only mods may sticky comments.
* Mods may sticky comments by other users.
This commit is contained in:
evazion
2016-12-26 22:24:01 -06:00
parent 390524c7f5
commit 1257639109
9 changed files with 44 additions and 32 deletions

View File

@@ -0,0 +1,5 @@
class AddStickyToComments < ActiveRecord::Migration
def change
add_column :comments, :is_sticky, :boolean, null: false, default: false
end
end