mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Raise ActiveRecord::IrreversibleMigration
instead of StandardError
.
This commit is contained in:
parent
18e598a3b0
commit
0c203e61cd
2 changed files with 2 additions and 2 deletions
|
@ -4,6 +4,6 @@ class AddUnreadTrackingColumns < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def down
|
||||
raise "Can not be reverted"
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,6 +3,6 @@ class DropUnreadTrackingColumns < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def down
|
||||
raise "Can not be reverted"
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue