@user.visible = true
@user.data_public = true
@user.description = "" if @user.description.nil?
+ @user.creation_ip = request.remote_ip
if @user.save
flash[:notice] = "User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)<br>Please note that you won't be able to login until you've received and confirmed your email address."
--- /dev/null
+class AddCreationIp < ActiveRecord::Migration
+ def self.up
+ add_column "users", "creation_ip", :string
+ end
+
+ def self.down
+ remove_column "users", "creation_ip"
+ end
+end