Irreversible migration for diff notes

Summary

In gitlab-ce@99d3e21f19ffb5cccb58fdfeac4fb6174e7e65e2 we have added irreversible migration for new Diff Notes.

Steps to reproduce

Try to rollback this migration.

Expected behavior

This migration should be reversible.

Relevant logs and/or screenshots

== 20160508221410 SetTypeOnLegacyDiffNotes: reverting =========================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

ActiveRecord::IrreversibleMigration/home/grzesiek/gdk/gitlab/db/migrate/20160508221410_set_type_on_legacy_diff_notes.rb:3:in `change'
ActiveRecord::IrreversibleMigration: ActiveRecord::IrreversibleMigration
/home/grzesiek/gdk/gitlab/db/migrate/20160508221410_set_type_on_legacy_diff_notes.rb:3:in `change'
Tasks: TOP => db:rollback
(See full trace by running task with --trace)

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/db/migrate/20160508221410_set_type_on_legacy_diff_notes.rb

Possible fixes

Using up and down method instead od change.

/cc @DouweM

Edited Sep 03, 2021 by Michelle Gill
Assignee Loading
Time tracking Loading