add statement timeout change to migration

This commit is contained in:
r888888888
2015-12-30 11:59:54 -08:00
parent 3829dc6a11
commit bfb8e2213e

View File

@@ -1,5 +1,6 @@
class AddLastIpAddrToUsers < ActiveRecord::Migration
def change
execute "set statement_timeout = 0"
add_column :users, :last_ip_addr, :inet
add_index :users, :last_ip_addr, where: "last_ip_addr is not null"
end