journalduhacker/db/migrate/20120902143549_add_moderation_log.rb

19 lines
382 B
Ruby
Raw Normal View History

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