]> git.openstreetmap.org Git - rails.git/blob - db/migrate/013_add_email_valid.rb
Log the IP address used to create an account.
[rails.git] / db / migrate / 013_add_email_valid.rb
1 class AddEmailValid < ActiveRecord::Migration
2   def self.up
3     add_column "users", "email_valid", :boolean, :default => false, :null => false
4     User.update_all("email_valid = active")
5   end
6
7   def self.down
8     remove_column "users", "email_valid"
9   end
10 end