mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
Raise ActiveRecord::IrreversibleMigration
instead of StandardError
.
This commit is contained in:
@ -4,6 +4,6 @@ class AddUnreadTrackingColumns < ActiveRecord::Migration
|
|||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
raise "Can not be reverted"
|
raise ActiveRecord::IrreversibleMigration
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -3,6 +3,6 @@ class DropUnreadTrackingColumns < ActiveRecord::Migration
|
|||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
raise "Can not be reverted"
|
raise ActiveRecord::IrreversibleMigration
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user