add statement timeout change to migration
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
class AddLastIpAddrToUsers < ActiveRecord::Migration
|
class AddLastIpAddrToUsers < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
|
execute "set statement_timeout = 0"
|
||||||
add_column :users, :last_ip_addr, :inet
|
add_column :users, :last_ip_addr, :inet
|
||||||
add_index :users, :last_ip_addr, where: "last_ip_addr is not null"
|
add_index :users, :last_ip_addr, where: "last_ip_addr is not null"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user