Fix: 過去のマイグレーションミスで生じたと思われる余分なテーブルとカラムを削除 (#470)
This commit is contained in:
parent
4c2675be41
commit
b0ce0a8dab
4 changed files with 18 additions and 15 deletions
14
db/migrate/20240117021025_remove_unused_table.rb
Normal file
14
db/migrate/20240117021025_remove_unused_table.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue