HHH v4

Irreversible Migration

Edit
equivalent Web Development
Public
Rails
migrations
In case you need a migration that cannot be reverted

class DropAbbaSongs < ActiveRecord::Migration[7.1]
  def up
    drop_table :abba_songs
  end

  def down
    raise ActiveRecord::IrreversibleMigration, "This migration cannot be reverted"
  end
end