pull moderator into own column, rename trust levels

This commit is contained in:
Sam
2013-03-19 21:05:19 -07:00
parent 0f5046a9cc
commit 62c60540be
21 changed files with 75 additions and 62 deletions

View File

@@ -0,0 +1,10 @@
class AddModeratorToUser < ActiveRecord::Migration
def up
add_column :users, :moderator, :boolean, default: false
execute "UPDATE users SET trust_level = 1, moderator = 't' where trust_level = 5"
end
def down
remove_column :users, :moderator
end
end