Add basic support for logically deleting a user.

This commit is contained in:
Tom Hughes 2008-08-24 16:53:42 +00:00
parent 791062569d
commit 34189cf761
7 changed files with 28 additions and 15 deletions

View file

@ -0,0 +1,10 @@
class AddUserVisible < ActiveRecord::Migration
def self.up
add_column "users", "visible", :boolean
User.update_all("visible = 1")
end
def self.down
remove_column "users", "visible"
end
end