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,7 +1,19 @@
# frozen_string_literal: true
class AddExcludesToAntennas < ActiveRecord::Migration[6.1]
def change
add_column :antennas, :exclude_domains, :jsonb
add_column :antennas, :exclude_accounts, :jsonb
add_column :antennas, :exclude_tags, :jsonb
change_table :antennas, bulk: true do |t|
t.jsonb :exclude_domains
t.jsonb :exclude_accounts
t.jsonb :exclude_tags
end
end
def down
change_table :antennas, bulk: true do |t|
t.remove :exclude_domains
t.remove :exclude_accounts
t.remove :exclude_tags
end
end
end