eBooru/db/migrate/20230226152600_remove_testparser.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

15 lines
452 B
Ruby

# frozen_string_literal: true
class RemoveTestparser < ActiveRecord::Migration[7.0]
def up
execute "DROP TRIGGER trigger_posts_on_tag_index_update ON posts"
remove_column :posts, :tag_index
execute "DROP TEXT SEARCH CONFIGURATION danbooru"
execute "DROP TEXT SEARCH PARSER testparser"
%i[testprs_start testprs_lextype testprs_getlexeme testprs_end].each do |function|
execute "DROP FUNCTION #{function}"
end
end
end