fixes #2557
This commit is contained in:
@@ -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