mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00: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:
parent
b51d40fe38
commit
9462fb4e2c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user