Merge commit '15fd712464' into kb_migration

This commit is contained in:
KMY 2023-05-01 15:05:34 +09:00
commit 3a1a6ba39e
289 changed files with 1339 additions and 1337 deletions

View file

@ -1,6 +1,17 @@
# frozen_string_literal: true
class AddHiddenToDomainBlocks < ActiveRecord::Migration[6.1]
def change
add_column :domain_blocks, :hidden, :boolean, null: false, default: false
add_column :domain_blocks, :hidden_anonymous, :boolean, null: false, default: false
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
def down
change_table :domain_blocks, bulk: true do |t|
t.remove :hidden
t.remove :hidden_anonymous
end
end
end