summaryrefslogtreecommitdiffstats
path: root/db/post_migrate/20220613110802_remove_whole_word_from_custom_filters.rb
blob: 5e477d9b11c8afef9ca23d1991e39144e49f1ac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class RemoveWholeWordFromCustomFilters < ActiveRecord::Migration[6.1]
  disable_ddl_transaction!

  def up
    safety_assured do
      remove_column :custom_filters, :whole_word
    end
  end

  def down
    safety_assured do
      add_column :custom_filters, :whole_word, :boolean, default: true, null: false
    end
  end
end