Add exclude_follows, exclude_localusers settings to custom_filter

This commit is contained in:
KMY 2023-07-14 12:16:08 +09:00
parent fb9dbfc866
commit 5a0483ed21
15 changed files with 77 additions and 22 deletions

View file

@ -0,0 +1,11 @@
# frozen_string_literal: true
class AddExcludeOptionsToFilters < ActiveRecord::Migration[6.1]
def change
safety_assured do
add_column :custom_filters, :exclude_follows, :boolean, null: false, default: false
add_column :custom_filters, :exclude_localusers, :boolean, null: false, default: false
change_column_default :custom_filter_keywords, :whole_word, from: true, to: false
end
end
end