eBooru/db/migrate/20230314170352_user_feedback_body.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

8 lines
182 B
Ruby

# frozen_string_literal: true
class UserFeedbackBody < ActiveRecord::Migration[7.0]
def change
add_index :user_feedback, "to_tsvector('english', body)", using: :gin
end
end