2012-09-02 16:50:07 +02:00
|
|
|
class AddModerationLog < ActiveRecord::Migration
|
|
|
|
def up
|
|
|
|
add_column "users", "is_moderator", :boolean, :default => false
|
|
|
|
|
|
|
|
create_table "moderations" do |t|
|
2013-12-30 23:29:00 +01:00
|
|
|
t.timestamps :null => false
|
2012-09-02 16:50:07 +02:00
|
|
|
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
|