* Fix EmojiFormatter failure * Add notification_emails.warning setting default value * Fix list spec failure and add antennas for spec response * Fix domain block spec failure to add kb custom response * Fix SearchQueryTransformer spec failure * Fix Account#matches_display_name spec failure * Fix UpdateStatusService changes mentions spec failure * Fix RuboCop Lint * Ignore brakeman warning * Fix CI failure for ignore brakeman warning * Fix migration failure * Fix README * Fix migration CI failure * Fix some spec failure * Format code for RuboCop lint failure * Fix ESlint failure * Fix haml-lint failure
23 lines
627 B
Ruby
23 lines
627 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddSomeToDomainBlocks < ActiveRecord::Migration[6.1]
|
|
def change
|
|
safety_assured do
|
|
change_table :domain_blocks, bulk: true do |t|
|
|
t.boolean :reject_hashtag, null: false, default: false
|
|
t.boolean :reject_straight_follow, null: false, default: false
|
|
t.boolean :reject_new_follow, null: false, default: false
|
|
end
|
|
end
|
|
end
|
|
|
|
def down
|
|
safety_assured do
|
|
change_table :domain_blocks, bulk: true do |t|
|
|
t.remove :reject_hashtag
|
|
t.remove :reject_straight_follow
|
|
t.remove :reject_new_follow
|
|
end
|
|
end
|
|
end
|
|
end
|