Merge commit '5a0483ed21
' into kb_migration
This commit is contained in:
commit
7b735921dc
26 changed files with 204 additions and 50 deletions
11
db/migrate/20230714004824_add_exclude_options_to_filters.rb
Normal file
11
db/migrate/20230714004824_add_exclude_options_to_filters.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue