Fix: 過去のマイグレーションミスで生じたと思われる余分なテーブルとカラムを削除 (#470)

This commit is contained in:
KMY(雪あすか) 2024-01-17 11:34:02 +09:00 committed by GitHub
parent 4c2675be41
commit b0ce0a8dab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 15 deletions

View file

@ -0,0 +1,14 @@
# frozen_string_literal: true
class RemoveUnusedTable < ActiveRecord::Migration[7.1]
disable_ddl_transaction!
def up
safety_assured do
execute('DROP TABLE IF EXISTS account_groups CASCADE')
execute('ALTER TABLE status_stats DROP COLUMN IF EXISTS test')
end
end
def down; end
end