diff --git a/db/migrate/20251002104708_change_audits_id_to_bigint.rb b/db/migrate/20251002104708_change_audits_id_to_bigint.rb new file mode 100644 index 00000000000..e65bc1c6d8d --- /dev/null +++ b/db/migrate/20251002104708_change_audits_id_to_bigint.rb @@ -0,0 +1,11 @@ +class ChangeAuditsIdToBigint < ActiveRecord::Migration[7.1] + uses_departure! if Rails.env.staging? || Rails.env.production? + + def up + change_column :audits, :id, "bigint NOT NULL AUTO_INCREMENT" + end + + def down + raise ActiveRecord::IrreversibleMigration, "This migration cannot be reverted because we can't safely migrate to a smaller id" + end +end \ No newline at end of file