add statement timeout to migration

This commit is contained in:
r888888888
2017-03-16 15:32:25 -07:00
parent bdeba94b31
commit 78fdc79db9

View File

@@ -1,5 +1,6 @@
class AddTagsToSavedSearches < ActiveRecord::Migration
def change
execute "set statement_timeout = 0"
add_column :saved_searches, :labels, "text", array: true, null: false, default: []
add_index :saved_searches, :labels, using: :gin
rename_column :saved_searches, :tag_query, :query