Log the IP address used to create an account.
This commit is contained in:
parent
caa20ccc40
commit
2ccbc55236
2 changed files with 10 additions and 0 deletions
9
db/migrate/016_add_creation_ip.rb
Normal file
9
db/migrate/016_add_creation_ip.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class AddCreationIp < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column "users", "creation_ip", :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column "users", "creation_ip"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue