Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions db/migrate/20251002104708_change_audits_id_to_bigint.rb
Original file line number Diff line number Diff line change
@@ -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

Check warning on line 11 in db/migrate/20251002104708_change_audits_id_to_bigint.rb

View workflow job for this annotation

GitHub Actions / Rubocop

[rubocop] reported by reviewdog 🐶 Final newline missing. Raw Output: db/migrate/20251002104708_change_audits_id_to_bigint.rb:11:4: C: Layout/TrailingEmptyLines: Final newline missing.
Loading