fixes #2557
This commit is contained in:
6
db/migrate/20151217213321_add_last_ip_addr_to_users.rb
Normal file
6
db/migrate/20151217213321_add_last_ip_addr_to_users.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class AddLastIpAddrToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :last_ip_addr, :inet
|
||||
add_index :users, :last_ip_addr, where: "last_ip_addr is not null"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user