Allow a user's email address to be marked invalid, and suppress most
notification mails for such users.
This commit is contained in:
parent
e379287e84
commit
f8367c3ee1
3 changed files with 17 additions and 6 deletions
10
db/migrate/013_add_email_valid.rb
Normal file
10
db/migrate/013_add_email_valid.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue