mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 00:36:14 +02:00
Fix to use a correct exception class ActiveRecord::IrreversibleMigration in migrations (#36770).
git-svn-id: http://svn.redmine.org/redmine/trunk@21458 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -8,6 +8,6 @@ class RenameCommentToComments < ActiveRecord::Migration[4.2]
|
||||
end
|
||||
|
||||
def self.down
|
||||
raise IrreversibleMigration
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4,6 +4,6 @@ class SetLanguageLengthToFive < ActiveRecord::Migration[4.2]
|
||||
end
|
||||
|
||||
def self.down
|
||||
raise IrreversibleMigration
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4,6 +4,6 @@ class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2]
|
||||
end
|
||||
|
||||
def self.down
|
||||
raise IrreversibleMigration
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,6 +5,6 @@ class DropPermissions < ActiveRecord::Migration[4.2]
|
||||
end
|
||||
|
||||
def self.down
|
||||
raise IrreversibleMigration
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4,6 +4,6 @@ class RemoveIssueStatusesHtmlColor < ActiveRecord::Migration[4.2]
|
||||
end
|
||||
|
||||
def self.down
|
||||
raise IrreversibleMigration
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4,6 +4,6 @@ class DropMembersRoleId < ActiveRecord::Migration[4.2]
|
||||
end
|
||||
|
||||
def self.down
|
||||
raise IrreversibleMigration
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user