diff options
author | Go MAEDA <maeda@farend.jp> | 2022-03-17 08:25:23 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-03-17 08:25:23 +0000 |
commit | 9462fb4e2caf1dcadb2d27d92005784774a2a779 (patch) | |
tree | 2665060ab281b352126ee9bb83cf05f9f7f33954 /db | |
parent | b51d40fe38f4f508edd03323b1d3dc30bc9931e3 (diff) | |
download | redmine-9462fb4e2caf1dcadb2d27d92005784774a2a779.tar.gz redmine-9462fb4e2caf1dcadb2d27d92005784774a2a779.zip |
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
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/041_rename_comment_to_comments.rb | 2 | ||||
-rw-r--r-- | db/migrate/044_set_language_length_to_five.rb | 2 | ||||
-rw-r--r-- | db/migrate/048_allow_null_version_effective_date.rb | 2 | ||||
-rw-r--r-- | db/migrate/064_drop_permissions.rb | 2 | ||||
-rw-r--r-- | db/migrate/077_remove_issue_statuses_html_color.rb | 2 | ||||
-rw-r--r-- | db/migrate/20090503121510_drop_members_role_id.rb | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/db/migrate/041_rename_comment_to_comments.rb b/db/migrate/041_rename_comment_to_comments.rb index 02391091a..300c239f6 100644 --- a/db/migrate/041_rename_comment_to_comments.rb +++ b/db/migrate/041_rename_comment_to_comments.rb @@ -8,6 +8,6 @@ class RenameCommentToComments < ActiveRecord::Migration[4.2] end def self.down - raise IrreversibleMigration + raise ActiveRecord::IrreversibleMigration end end diff --git a/db/migrate/044_set_language_length_to_five.rb b/db/migrate/044_set_language_length_to_five.rb index 1e600690f..524b2327d 100644 --- a/db/migrate/044_set_language_length_to_five.rb +++ b/db/migrate/044_set_language_length_to_five.rb @@ -4,6 +4,6 @@ class SetLanguageLengthToFive < ActiveRecord::Migration[4.2] end def self.down - raise IrreversibleMigration + raise ActiveRecord::IrreversibleMigration end end diff --git a/db/migrate/048_allow_null_version_effective_date.rb b/db/migrate/048_allow_null_version_effective_date.rb index 9cce1e3f6..d8695af0a 100644 --- a/db/migrate/048_allow_null_version_effective_date.rb +++ b/db/migrate/048_allow_null_version_effective_date.rb @@ -4,6 +4,6 @@ class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2] end def self.down - raise IrreversibleMigration + raise ActiveRecord::IrreversibleMigration end end diff --git a/db/migrate/064_drop_permissions.rb b/db/migrate/064_drop_permissions.rb index 6d39519fe..326e35f50 100644 --- a/db/migrate/064_drop_permissions.rb +++ b/db/migrate/064_drop_permissions.rb @@ -5,6 +5,6 @@ class DropPermissions < ActiveRecord::Migration[4.2] end def self.down - raise IrreversibleMigration + raise ActiveRecord::IrreversibleMigration end end diff --git a/db/migrate/077_remove_issue_statuses_html_color.rb b/db/migrate/077_remove_issue_statuses_html_color.rb index fdf64ce29..c6e14891a 100644 --- a/db/migrate/077_remove_issue_statuses_html_color.rb +++ b/db/migrate/077_remove_issue_statuses_html_color.rb @@ -4,6 +4,6 @@ class RemoveIssueStatusesHtmlColor < ActiveRecord::Migration[4.2] end def self.down - raise IrreversibleMigration + raise ActiveRecord::IrreversibleMigration end end diff --git a/db/migrate/20090503121510_drop_members_role_id.rb b/db/migrate/20090503121510_drop_members_role_id.rb index 7b8e3cf9a..c1caa70e8 100644 --- a/db/migrate/20090503121510_drop_members_role_id.rb +++ b/db/migrate/20090503121510_drop_members_role_id.rb @@ -4,6 +4,6 @@ class DropMembersRoleId < ActiveRecord::Migration[4.2] end def self.down - raise IrreversibleMigration + raise ActiveRecord::IrreversibleMigration end end |