Raise `ActiveRecord::IrreversibleMigration` instead of `StandardError`.

This commit is contained in:
Guo Xiang Tan 2017-06-05 11:02:24 +09:00
parent 18e598a3b0
commit 0c203e61cd
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,6 @@ class AddUnreadTrackingColumns < ActiveRecord::Migration
end
def down
raise "Can not be reverted"
raise ActiveRecord::IrreversibleMigration
end
end

View File

@ -3,6 +3,6 @@ class DropUnreadTrackingColumns < ActiveRecord::Migration
end
def down
raise "Can not be reverted"
raise ActiveRecord::IrreversibleMigration
end
end