You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nyastodon/db/post_migrate/20220613110802_remove_whole...

18 lines
359 B
Ruby

# 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