Browse Source

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
tags/5.0.0
Go MAEDA 2 years ago
parent
commit
9462fb4e2c

+ 1
- 1
db/migrate/041_rename_comment_to_comments.rb View File

@@ -8,6 +8,6 @@ class RenameCommentToComments < ActiveRecord::Migration[4.2]
end

def self.down
raise IrreversibleMigration
raise ActiveRecord::IrreversibleMigration
end
end

+ 1
- 1
db/migrate/044_set_language_length_to_five.rb View File

@@ -4,6 +4,6 @@ class SetLanguageLengthToFive < ActiveRecord::Migration[4.2]
end

def self.down
raise IrreversibleMigration
raise ActiveRecord::IrreversibleMigration
end
end

+ 1
- 1
db/migrate/048_allow_null_version_effective_date.rb View File

@@ -4,6 +4,6 @@ class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2]
end

def self.down
raise IrreversibleMigration
raise ActiveRecord::IrreversibleMigration
end
end

+ 1
- 1
db/migrate/064_drop_permissions.rb View File

@@ -5,6 +5,6 @@ class DropPermissions < ActiveRecord::Migration[4.2]
end

def self.down
raise IrreversibleMigration
raise ActiveRecord::IrreversibleMigration
end
end

+ 1
- 1
db/migrate/077_remove_issue_statuses_html_color.rb View File

@@ -4,6 +4,6 @@ class RemoveIssueStatusesHtmlColor < ActiveRecord::Migration[4.2]
end

def self.down
raise IrreversibleMigration
raise ActiveRecord::IrreversibleMigration
end
end

+ 1
- 1
db/migrate/20090503121510_drop_members_role_id.rb View File

@@ -4,6 +4,6 @@ class DropMembersRoleId < ActiveRecord::Migration[4.2]
end

def self.down
raise IrreversibleMigration
raise ActiveRecord::IrreversibleMigration
end
end

Loading…
Cancel
Save