This commit is contained in:
r888888888
2015-12-17 14:29:17 -08:00
parent cf2b0fa7fe
commit 5b3a4b768c
6 changed files with 18 additions and 4 deletions

View 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