Allow a user's email address to be marked invalid, and suppress most

notification mails for such users.
This commit is contained in:
Tom Hughes 2008-08-13 10:45:49 +00:00
parent e379287e84
commit f8367c3ee1
3 changed files with 17 additions and 6 deletions

View file

@ -0,0 +1,10 @@
class AddEmailValid < ActiveRecord::Migration
def self.up
add_column "users", "email_valid", :boolean, :default => false, :null => false
User.update_all("email_valid = active")
end
def self.down
remove_column "users", "email_valid"
end
end