From bfb8e2213ed03f85647ae371ac6dad76af6884ce Mon Sep 17 00:00:00 2001 From: r888888888 Date: Wed, 30 Dec 2015 11:59:54 -0800 Subject: [PATCH] add statement timeout change to migration --- db/migrate/20151217213321_add_last_ip_addr_to_users.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrate/20151217213321_add_last_ip_addr_to_users.rb b/db/migrate/20151217213321_add_last_ip_addr_to_users.rb index 68a38b419..204d731f6 100644 --- a/db/migrate/20151217213321_add_last_ip_addr_to_users.rb +++ b/db/migrate/20151217213321_add_last_ip_addr_to_users.rb @@ -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