add no statement timeout block to migration
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
class AddTrigramIndexToTags < ActiveRecord::Migration
|
class AddTrigramIndexToTags < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
execute "create index index_tags_on_name_trgm on tags using gin (name gin_trgm_ops)"
|
Tag.without_timeout do
|
||||||
|
execute "create index index_tags_on_name_trgm on tags using gin (name gin_trgm_ops)"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
execute "drop index index_tags_on_name_trgm"
|
Tag.without_timeout do
|
||||||
|
execute "drop index index_tags_on_name_trgm"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user