nas/db/migrate/20230427233749_add_hidden_to_domain_blocks.rb
S.H 696e4a10d6
独自機能の追加などで他の部分への影響が分かるようにCI周りの修正 (#1)
* 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
2023-08-07 21:38:15 +09:00

21 lines
499 B
Ruby

# frozen_string_literal: true
class AddHiddenToDomainBlocks < ActiveRecord::Migration[6.1]
def change
safety_assured do
change_table :domain_blocks, bulk: true do |t|
t.boolean :hidden, null: false, default: false
t.boolean :hidden_anonymous, null: false, default: false
end
end
end
def down
safety_assured do
change_table :domain_blocks, bulk: true do |t|
t.remove :hidden
t.remove :hidden_anonymous
end
end
end
end