openstreetmap-website/db/migrate/013_add_email_valid.rb
2008-08-13 10:45:49 +00:00

10 lines
261 B
Ruby

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