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)
Possible fixes
Using up and down method instead od change.
/cc @DouweM
Edited by Michelle Gill