Add basic support for logically deleting a user.
This commit is contained in:
parent
791062569d
commit
34189cf761
7 changed files with 28 additions and 15 deletions
10
db/migrate/015_add_user_visible.rb
Normal file
10
db/migrate/015_add_user_visible.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue