e6c74e8251
- add users.is_moderator and look at that for most things, not is_admin - make default user in readme be a moderator - log moderator actions in story edits, comment deletions/undeletions (and later, user disabling). - remove ability for moderators to edit comments, there's really no reason to.
19 lines
382 B
Ruby
19 lines
382 B
Ruby
class AddModerationLog < ActiveRecord::Migration
|
|
def up
|
|
add_column "users", "is_moderator", :boolean, :default => false
|
|
|
|
create_table "moderations" do |t|
|
|
t.timestamps
|
|
t.integer "moderator_user_id"
|
|
t.integer "story_id"
|
|
t.integer "comment_id"
|
|
t.integer "user_id"
|
|
t.text "action"
|
|
t.text "reason"
|
|
end
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|