diff options
Diffstat (limited to 'db/post_migrate')
172 files changed, 200 insertions, 173 deletions
diff --git a/db/post_migrate/20160824121037_change_personal_access_tokens_default_back_to_empty_array.rb b/db/post_migrate/20160824121037_change_personal_access_tokens_default_back_to_empty_array.rb index 7df561d82dd..099814d7556 100644 --- a/db/post_migrate/20160824121037_change_personal_access_tokens_default_back_to_empty_array.rb +++ b/db/post_migrate/20160824121037_change_personal_access_tokens_default_back_to_empty_array.rb @@ -4,7 +4,7 @@ # # Details: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5951#note_19721973 -class ChangePersonalAccessTokensDefaultBackToEmptyArray < ActiveRecord::Migration +class ChangePersonalAccessTokensDefaultBackToEmptyArray < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20161011222551_remove_inactive_jira_service_properties.rb b/db/post_migrate/20161011222551_remove_inactive_jira_service_properties.rb index 319d86ac159..bf3aee99418 100644 --- a/db/post_migrate/20161011222551_remove_inactive_jira_service_properties.rb +++ b/db/post_migrate/20161011222551_remove_inactive_jira_service_properties.rb @@ -1,4 +1,4 @@ -class RemoveInactiveJiraServiceProperties < ActiveRecord::Migration +class RemoveInactiveJiraServiceProperties < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = true diff --git a/db/post_migrate/20161109150329_fix_project_records_with_invalid_visibility.rb b/db/post_migrate/20161109150329_fix_project_records_with_invalid_visibility.rb index f058e85c1ec..d77a22bfb69 100644 --- a/db/post_migrate/20161109150329_fix_project_records_with_invalid_visibility.rb +++ b/db/post_migrate/20161109150329_fix_project_records_with_invalid_visibility.rb @@ -1,4 +1,4 @@ -class FixProjectRecordsWithInvalidVisibility < ActiveRecord::Migration +class FixProjectRecordsWithInvalidVisibility < ActiveRecord::Migration[4.2] include Gitlab::Database::ArelMethods include Gitlab::Database::MigrationHelpers diff --git a/db/post_migrate/20161128170531_drop_user_activities_table.rb b/db/post_migrate/20161128170531_drop_user_activities_table.rb index 00bc0c73015..64d13a08953 100644 --- a/db/post_migrate/20161128170531_drop_user_activities_table.rb +++ b/db/post_migrate/20161128170531_drop_user_activities_table.rb @@ -1,4 +1,4 @@ -class DropUserActivitiesTable < ActiveRecord::Migration +class DropUserActivitiesTable < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20161221140236_remove_unneeded_services.rb b/db/post_migrate/20161221140236_remove_unneeded_services.rb index 6b7e94c8641..31f24263877 100644 --- a/db/post_migrate/20161221140236_remove_unneeded_services.rb +++ b/db/post_migrate/20161221140236_remove_unneeded_services.rb @@ -1,4 +1,4 @@ -class RemoveUnneededServices < ActiveRecord::Migration +class RemoveUnneededServices < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20161221153951_rename_reserved_project_names.rb b/db/post_migrate/20161221153951_rename_reserved_project_names.rb index 678876e886c..b7665e98490 100644 --- a/db/post_migrate/20161221153951_rename_reserved_project_names.rb +++ b/db/post_migrate/20161221153951_rename_reserved_project_names.rb @@ -1,4 +1,4 @@ -class RenameReservedProjectNames < ActiveRecord::Migration +class RenameReservedProjectNames < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers include Gitlab::ShellAdapter diff --git a/db/post_migrate/20170104150317_requeue_pending_delete_projects.rb b/db/post_migrate/20170104150317_requeue_pending_delete_projects.rb index d7be004d47f..f567accb051 100644 --- a/db/post_migrate/20170104150317_requeue_pending_delete_projects.rb +++ b/db/post_migrate/20170104150317_requeue_pending_delete_projects.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RequeuePendingDeleteProjects < ActiveRecord::Migration +class RequeuePendingDeleteProjects < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170106142508_fill_authorized_projects.rb b/db/post_migrate/20170106142508_fill_authorized_projects.rb index 0ca20587981..1f1dd0f47f0 100644 --- a/db/post_migrate/20170106142508_fill_authorized_projects.rb +++ b/db/post_migrate/20170106142508_fill_authorized_projects.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class FillAuthorizedProjects < ActiveRecord::Migration +class FillAuthorizedProjects < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers class User < ActiveRecord::Base diff --git a/db/post_migrate/20170106172224_remove_project_authorizations_id_column.rb b/db/post_migrate/20170106172224_remove_project_authorizations_id_column.rb index 7c788160022..893af23465a 100644 --- a/db/post_migrate/20170106172224_remove_project_authorizations_id_column.rb +++ b/db/post_migrate/20170106172224_remove_project_authorizations_id_column.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveProjectAuthorizationsIdColumn < ActiveRecord::Migration +class RemoveProjectAuthorizationsIdColumn < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170131214021_reset_users_authorized_projects_populated.rb b/db/post_migrate/20170131214021_reset_users_authorized_projects_populated.rb index f1f81691f81..055a14ad729 100644 --- a/db/post_migrate/20170131214021_reset_users_authorized_projects_populated.rb +++ b/db/post_migrate/20170131214021_reset_users_authorized_projects_populated.rb @@ -1,6 +1,6 @@ # rubocop:disable Migration/UpdateLargeTable # rubocop:disable Migration/UpdateColumnInBatches -class ResetUsersAuthorizedProjectsPopulated < ActiveRecord::Migration +class ResetUsersAuthorizedProjectsPopulated < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170206040400_remove_inactive_default_email_services.rb b/db/post_migrate/20170206040400_remove_inactive_default_email_services.rb index a8e63e8bc7d..f221dac8e20 100644 --- a/db/post_migrate/20170206040400_remove_inactive_default_email_services.rb +++ b/db/post_migrate/20170206040400_remove_inactive_default_email_services.rb @@ -1,4 +1,4 @@ -class RemoveInactiveDefaultEmailServices < ActiveRecord::Migration +class RemoveInactiveDefaultEmailServices < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170206101007_remove_trackable_columns_from_timelogs.rb b/db/post_migrate/20170206101007_remove_trackable_columns_from_timelogs.rb index aee0c1b6245..14f5d0d4add 100644 --- a/db/post_migrate/20170206101007_remove_trackable_columns_from_timelogs.rb +++ b/db/post_migrate/20170206101007_remove_trackable_columns_from_timelogs.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveTrackableColumnsFromTimelogs < ActiveRecord::Migration +class RemoveTrackableColumnsFromTimelogs < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170206101030_validate_foreign_keys_on_timelogs.rb b/db/post_migrate/20170206101030_validate_foreign_keys_on_timelogs.rb index f397ef919cc..b5a5c0f06c7 100644 --- a/db/post_migrate/20170206101030_validate_foreign_keys_on_timelogs.rb +++ b/db/post_migrate/20170206101030_validate_foreign_keys_on_timelogs.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class ValidateForeignKeysOnTimelogs < ActiveRecord::Migration +class ValidateForeignKeysOnTimelogs < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170209140523_validate_foreign_keys_on_oauth_openid_requests.rb b/db/post_migrate/20170209140523_validate_foreign_keys_on_oauth_openid_requests.rb index e206f9af636..81ac4cf1373 100644 --- a/db/post_migrate/20170209140523_validate_foreign_keys_on_oauth_openid_requests.rb +++ b/db/post_migrate/20170209140523_validate_foreign_keys_on_oauth_openid_requests.rb @@ -1,4 +1,4 @@ -class ValidateForeignKeysOnOauthOpenidRequests < ActiveRecord::Migration +class ValidateForeignKeysOnOauthOpenidRequests < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170211073944_disable_invalid_service_templates.rb b/db/post_migrate/20170211073944_disable_invalid_service_templates.rb index 603efc43782..31234e5b086 100644 --- a/db/post_migrate/20170211073944_disable_invalid_service_templates.rb +++ b/db/post_migrate/20170211073944_disable_invalid_service_templates.rb @@ -1,4 +1,4 @@ -class DisableInvalidServiceTemplates < ActiveRecord::Migration +class DisableInvalidServiceTemplates < ActiveRecord::Migration[4.2] DOWNTIME = false class Service < ActiveRecord::Base diff --git a/db/post_migrate/20170214111112_delete_deprecated_gitlab_ci_service.rb b/db/post_migrate/20170214111112_delete_deprecated_gitlab_ci_service.rb index 09a827d22b0..c273060f8b0 100644 --- a/db/post_migrate/20170214111112_delete_deprecated_gitlab_ci_service.rb +++ b/db/post_migrate/20170214111112_delete_deprecated_gitlab_ci_service.rb @@ -1,4 +1,4 @@ -class DeleteDeprecatedGitlabCiService < ActiveRecord::Migration +class DeleteDeprecatedGitlabCiService < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170215200045_remove_theme_id_from_users.rb b/db/post_migrate/20170215200045_remove_theme_id_from_users.rb index c51646fbe52..937fe3f57af 100644 --- a/db/post_migrate/20170215200045_remove_theme_id_from_users.rb +++ b/db/post_migrate/20170215200045_remove_theme_id_from_users.rb @@ -1,4 +1,4 @@ -class RemoveThemeIdFromUsers < ActiveRecord::Migration +class RemoveThemeIdFromUsers < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170301205640_migrate_build_events_to_pipeline_events.rb b/db/post_migrate/20170301205640_migrate_build_events_to_pipeline_events.rb index 04bf89c9687..c2d28d79491 100644 --- a/db/post_migrate/20170301205640_migrate_build_events_to_pipeline_events.rb +++ b/db/post_migrate/20170301205640_migrate_build_events_to_pipeline_events.rb @@ -1,4 +1,4 @@ -class MigrateBuildEventsToPipelineEvents < ActiveRecord::Migration +class MigrateBuildEventsToPipelineEvents < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170306170512_migrate_legacy_manual_actions.rb b/db/post_migrate/20170306170512_migrate_legacy_manual_actions.rb index ec6e8cdfc45..aa12e8ac3da 100644 --- a/db/post_migrate/20170306170512_migrate_legacy_manual_actions.rb +++ b/db/post_migrate/20170306170512_migrate_legacy_manual_actions.rb @@ -1,4 +1,4 @@ -class MigrateLegacyManualActions < ActiveRecord::Migration +class MigrateLegacyManualActions < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170309171644_reset_relative_position_for_issue.rb b/db/post_migrate/20170309171644_reset_relative_position_for_issue.rb index 49fd46b0262..2cf4cf61d8f 100644 --- a/db/post_migrate/20170309171644_reset_relative_position_for_issue.rb +++ b/db/post_migrate/20170309171644_reset_relative_position_for_issue.rb @@ -1,6 +1,6 @@ # rubocop:disable Migration/UpdateLargeTable # rubocop:disable Migration/UpdateColumnInBatches -class ResetRelativePositionForIssue < ActiveRecord::Migration +class ResetRelativePositionForIssue < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170313133418_rename_more_reserved_project_names.rb b/db/post_migrate/20170313133418_rename_more_reserved_project_names.rb index 26a67b0f814..cac3fd713eb 100644 --- a/db/post_migrate/20170313133418_rename_more_reserved_project_names.rb +++ b/db/post_migrate/20170313133418_rename_more_reserved_project_names.rb @@ -1,4 +1,4 @@ -class RenameMoreReservedProjectNames < ActiveRecord::Migration +class RenameMoreReservedProjectNames < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers include Gitlab::ShellAdapter diff --git a/db/post_migrate/20170317162059_update_upload_paths_to_system.rb b/db/post_migrate/20170317162059_update_upload_paths_to_system.rb index 92e33848bf0..a5a6f043e10 100644 --- a/db/post_migrate/20170317162059_update_upload_paths_to_system.rb +++ b/db/post_migrate/20170317162059_update_upload_paths_to_system.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class UpdateUploadPathsToSystem < ActiveRecord::Migration +class UpdateUploadPathsToSystem < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170324160416_migrate_user_activities_to_users_last_activity_on.rb b/db/post_migrate/20170324160416_migrate_user_activities_to_users_last_activity_on.rb index 392fa00b1ba..73989339ad9 100644 --- a/db/post_migrate/20170324160416_migrate_user_activities_to_users_last_activity_on.rb +++ b/db/post_migrate/20170324160416_migrate_user_activities_to_users_last_activity_on.rb @@ -1,5 +1,5 @@ # rubocop:disable Migration/UpdateLargeTable -class MigrateUserActivitiesToUsersLastActivityOn < ActiveRecord::Migration +class MigrateUserActivitiesToUsersLastActivityOn < ActiveRecord::Migration[4.2] include Gitlab::Database::ArelMethods include Gitlab::Database::MigrationHelpers diff --git a/db/post_migrate/20170404170532_remove_notes_original_discussion_id.rb b/db/post_migrate/20170404170532_remove_notes_original_discussion_id.rb index 0c3b3bd5eb3..334742f04e4 100644 --- a/db/post_migrate/20170404170532_remove_notes_original_discussion_id.rb +++ b/db/post_migrate/20170404170532_remove_notes_original_discussion_id.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveNotesOriginalDiscussionId < ActiveRecord::Migration +class RemoveNotesOriginalDiscussionId < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170406111121_clean_upload_symlinks.rb b/db/post_migrate/20170406111121_clean_upload_symlinks.rb index 0ab3d61730d..5fec00aa198 100644 --- a/db/post_migrate/20170406111121_clean_upload_symlinks.rb +++ b/db/post_migrate/20170406111121_clean_upload_symlinks.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class CleanUploadSymlinks < ActiveRecord::Migration +class CleanUploadSymlinks < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20170406142253_migrate_user_project_view.rb b/db/post_migrate/20170406142253_migrate_user_project_view.rb index d6061dd416d..3601baba787 100644 --- a/db/post_migrate/20170406142253_migrate_user_project_view.rb +++ b/db/post_migrate/20170406142253_migrate_user_project_view.rb @@ -2,7 +2,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class MigrateUserProjectView < ActiveRecord::Migration +class MigrateUserProjectView < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20170408033905_remove_old_cache_directories.rb b/db/post_migrate/20170408033905_remove_old_cache_directories.rb index b23b52896b9..22bc5b9db7b 100644 --- a/db/post_migrate/20170408033905_remove_old_cache_directories.rb +++ b/db/post_migrate/20170408033905_remove_old_cache_directories.rb @@ -4,7 +4,7 @@ # Remove all files from old custom carrierwave's cache directories. # See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9466 -class RemoveOldCacheDirectories < ActiveRecord::Migration +class RemoveOldCacheDirectories < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb b/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb index 08cf366f0a1..c9ff91b0401 100644 --- a/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb +++ b/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RenameReservedDynamicPaths < ActiveRecord::Migration +class RenameReservedDynamicPaths < ActiveRecord::Migration[4.2] include Gitlab::Database::RenameReservedPathsMigration::V1 DOWNTIME = false diff --git a/db/post_migrate/20170425121605_migrate_trigger_schedules_to_pipeline_schedules.rb b/db/post_migrate/20170425121605_migrate_trigger_schedules_to_pipeline_schedules.rb index dae9750558f..99ded277277 100644 --- a/db/post_migrate/20170425121605_migrate_trigger_schedules_to_pipeline_schedules.rb +++ b/db/post_migrate/20170425121605_migrate_trigger_schedules_to_pipeline_schedules.rb @@ -1,4 +1,4 @@ -class MigrateTriggerSchedulesToPipelineSchedules < ActiveRecord::Migration +class MigrateTriggerSchedulesToPipelineSchedules < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170425130047_drop_ci_trigger_schedules_table.rb b/db/post_migrate/20170425130047_drop_ci_trigger_schedules_table.rb index 24750c58ef0..9d515aca8b4 100644 --- a/db/post_migrate/20170425130047_drop_ci_trigger_schedules_table.rb +++ b/db/post_migrate/20170425130047_drop_ci_trigger_schedules_table.rb @@ -1,4 +1,4 @@ -class DropCiTriggerSchedulesTable < ActiveRecord::Migration +class DropCiTriggerSchedulesTable < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb b/db/post_migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb index 845c6f0557f..4d091d7f275 100644 --- a/db/post_migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb +++ b/db/post_migrate/20170502070007_enable_auto_cancel_pending_pipelines_for_all.rb @@ -1,6 +1,6 @@ # rubocop:disable Migration/UpdateLargeTable # rubocop:disable Migration/UpdateColumnInBatches -class EnableAutoCancelPendingPipelinesForAll < ActiveRecord::Migration +class EnableAutoCancelPendingPipelinesForAll < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20170502101023_cleanup_namespaceless_pending_delete_projects.rb b/db/post_migrate/20170502101023_cleanup_namespaceless_pending_delete_projects.rb index 5238a2ba1b7..c018d30c175 100644 --- a/db/post_migrate/20170502101023_cleanup_namespaceless_pending_delete_projects.rb +++ b/db/post_migrate/20170502101023_cleanup_namespaceless_pending_delete_projects.rb @@ -1,6 +1,6 @@ # This is the counterpart of RequeuePendingDeleteProjects and cleans all # projects with `pending_delete = true` and that do not have a namespace. -class CleanupNamespacelessPendingDeleteProjects < ActiveRecord::Migration +class CleanupNamespacelessPendingDeleteProjects < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170503004427_update_retried_for_ci_build.rb b/db/post_migrate/20170503004427_update_retried_for_ci_build.rb index 079f0e7511f..596f8593308 100644 --- a/db/post_migrate/20170503004427_update_retried_for_ci_build.rb +++ b/db/post_migrate/20170503004427_update_retried_for_ci_build.rb @@ -1,5 +1,5 @@ # rubocop:disable Migration/UpdateLargeTable -class UpdateRetriedForCiBuild < ActiveRecord::Migration +class UpdateRetriedForCiBuild < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170503120310_remove_users_authorized_projects_populated.rb b/db/post_migrate/20170503120310_remove_users_authorized_projects_populated.rb index 1b44334395f..891ce44f60a 100644 --- a/db/post_migrate/20170503120310_remove_users_authorized_projects_populated.rb +++ b/db/post_migrate/20170503120310_remove_users_authorized_projects_populated.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveUsersAuthorizedProjectsPopulated < ActiveRecord::Migration +class RemoveUsersAuthorizedProjectsPopulated < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20170508170547_add_head_pipeline_for_each_merge_request.rb b/db/post_migrate/20170508170547_add_head_pipeline_for_each_merge_request.rb index 5df3ab71648..6e7365f4c56 100644 --- a/db/post_migrate/20170508170547_add_head_pipeline_for_each_merge_request.rb +++ b/db/post_migrate/20170508170547_add_head_pipeline_for_each_merge_request.rb @@ -1,5 +1,5 @@ # rubocop:disable Migration/UpdateLargeTable -class AddHeadPipelineForEachMergeRequest < ActiveRecord::Migration +class AddHeadPipelineForEachMergeRequest < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170510101043_add_foreign_key_on_pipeline_schedule_owner.rb b/db/post_migrate/20170510101043_add_foreign_key_on_pipeline_schedule_owner.rb index 6a870f08e89..85586aecd54 100644 --- a/db/post_migrate/20170510101043_add_foreign_key_on_pipeline_schedule_owner.rb +++ b/db/post_migrate/20170510101043_add_foreign_key_on_pipeline_schedule_owner.rb @@ -1,4 +1,4 @@ -class AddForeignKeyOnPipelineScheduleOwner < ActiveRecord::Migration +class AddForeignKeyOnPipelineScheduleOwner < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb b/db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb index 281be90163a..b4a3db65607 100644 --- a/db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb +++ b/db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class CleanupRenameWebHooksBuildEventsToJobEvents < ActiveRecord::Migration +class CleanupRenameWebHooksBuildEventsToJobEvents < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb b/db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb index 5d26df5688f..65342747321 100644 --- a/db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb +++ b/db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class CleanupRenameServicesBuildEventsToJobEvents < ActiveRecord::Migration +class CleanupRenameServicesBuildEventsToJobEvents < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170516165238_cleanup_trigger_for_issues.rb b/db/post_migrate/20170516165238_cleanup_trigger_for_issues.rb index 378fe5603c3..affeba52250 100644 --- a/db/post_migrate/20170516165238_cleanup_trigger_for_issues.rb +++ b/db/post_migrate/20170516165238_cleanup_trigger_for_issues.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class CleanupTriggerForIssues < ActiveRecord::Migration +class CleanupTriggerForIssues < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20170516181025_add_constraints_to_issue_assignees_table.rb b/db/post_migrate/20170516181025_add_constraints_to_issue_assignees_table.rb index 6fa573c5b49..03456a31b0d 100644 --- a/db/post_migrate/20170516181025_add_constraints_to_issue_assignees_table.rb +++ b/db/post_migrate/20170516181025_add_constraints_to_issue_assignees_table.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class AddConstraintsToIssueAssigneesTable < ActiveRecord::Migration +class AddConstraintsToIssueAssigneesTable < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20170518200835_rename_users_with_renamed_namespace.rb b/db/post_migrate/20170518200835_rename_users_with_renamed_namespace.rb index 17ad7de065d..4ba78727cc3 100644 --- a/db/post_migrate/20170518200835_rename_users_with_renamed_namespace.rb +++ b/db/post_migrate/20170518200835_rename_users_with_renamed_namespace.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RenameUsersWithRenamedNamespace < ActiveRecord::Migration +class RenameUsersWithRenamedNamespace < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170518231126_fix_wrongly_renamed_routes.rb b/db/post_migrate/20170518231126_fix_wrongly_renamed_routes.rb index 3e952980866..28a2a2e01bf 100644 --- a/db/post_migrate/20170518231126_fix_wrongly_renamed_routes.rb +++ b/db/post_migrate/20170518231126_fix_wrongly_renamed_routes.rb @@ -2,7 +2,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class FixWronglyRenamedRoutes < ActiveRecord::Migration +class FixWronglyRenamedRoutes < ActiveRecord::Migration[4.2] include Gitlab::Database::RenameReservedPathsMigration::V1 DOWNTIME = false diff --git a/db/post_migrate/20170523073948_remove_assignee_id_from_issue.rb b/db/post_migrate/20170523073948_remove_assignee_id_from_issue.rb index 006d17b4d62..d75bbb2f612 100644 --- a/db/post_migrate/20170523073948_remove_assignee_id_from_issue.rb +++ b/db/post_migrate/20170523073948_remove_assignee_id_from_issue.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveAssigneeIdFromIssue < ActiveRecord::Migration +class RemoveAssigneeIdFromIssue < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20170523083112_migrate_old_artifacts.rb b/db/post_migrate/20170523083112_migrate_old_artifacts.rb index 3a77b9751d3..55e155c7619 100644 --- a/db/post_migrate/20170523083112_migrate_old_artifacts.rb +++ b/db/post_migrate/20170523083112_migrate_old_artifacts.rb @@ -1,4 +1,4 @@ -class MigrateOldArtifacts < ActiveRecord::Migration +class MigrateOldArtifacts < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb b/db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb index c996ddbec84..59b8daaffdf 100644 --- a/db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb +++ b/db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RenameAllReservedPathsAgain < ActiveRecord::Migration +class RenameAllReservedPathsAgain < ActiveRecord::Migration[4.2] include Gitlab::Database::RenameReservedPathsMigration::V1 DOWNTIME = false diff --git a/db/post_migrate/20170526185842_migrate_pipeline_stages.rb b/db/post_migrate/20170526185842_migrate_pipeline_stages.rb index 736aff77f02..53743fc16e6 100644 --- a/db/post_migrate/20170526185842_migrate_pipeline_stages.rb +++ b/db/post_migrate/20170526185842_migrate_pipeline_stages.rb @@ -1,4 +1,4 @@ -class MigratePipelineStages < ActiveRecord::Migration +class MigratePipelineStages < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170526185858_create_index_in_pipeline_stages.rb b/db/post_migrate/20170526185858_create_index_in_pipeline_stages.rb index ec9ff33b6b7..dc7b1d6d026 100644 --- a/db/post_migrate/20170526185858_create_index_in_pipeline_stages.rb +++ b/db/post_migrate/20170526185858_create_index_in_pipeline_stages.rb @@ -1,4 +1,4 @@ -class CreateIndexInPipelineStages < ActiveRecord::Migration +class CreateIndexInPipelineStages < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170526185901_remove_stage_id_index_from_builds.rb b/db/post_migrate/20170526185901_remove_stage_id_index_from_builds.rb index 3879cf9133b..de473e7bb91 100644 --- a/db/post_migrate/20170526185901_remove_stage_id_index_from_builds.rb +++ b/db/post_migrate/20170526185901_remove_stage_id_index_from_builds.rb @@ -1,4 +1,4 @@ -class RemoveStageIdIndexFromBuilds < ActiveRecord::Migration +class RemoveStageIdIndexFromBuilds < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170526185921_migrate_build_stage_reference.rb b/db/post_migrate/20170526185921_migrate_build_stage_reference.rb index 98c32d8284c..a9b392314fa 100644 --- a/db/post_migrate/20170526185921_migrate_build_stage_reference.rb +++ b/db/post_migrate/20170526185921_migrate_build_stage_reference.rb @@ -1,4 +1,4 @@ -class MigrateBuildStageReference < ActiveRecord::Migration +class MigrateBuildStageReference < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170526190000_migrate_build_stage_reference_again.rb b/db/post_migrate/20170526190000_migrate_build_stage_reference_again.rb index a7bfba0ab2b..01b6cf3a158 100644 --- a/db/post_migrate/20170526190000_migrate_build_stage_reference_again.rb +++ b/db/post_migrate/20170526190000_migrate_build_stage_reference_again.rb @@ -1,5 +1,5 @@ # rubocop:disable Migration/UpdateLargeTable -class MigrateBuildStageReferenceAgain < ActiveRecord::Migration +class MigrateBuildStageReferenceAgain < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170531203055_cleanup_users_ldap_email_rename.rb b/db/post_migrate/20170531203055_cleanup_users_ldap_email_rename.rb index a70e3985005..3d75c7e3eaf 100644 --- a/db/post_migrate/20170531203055_cleanup_users_ldap_email_rename.rb +++ b/db/post_migrate/20170531203055_cleanup_users_ldap_email_rename.rb @@ -1,4 +1,4 @@ -class CleanupUsersLdapEmailRename < ActiveRecord::Migration +class CleanupUsersLdapEmailRename < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170606202615_move_appearance_to_system_dir.rb b/db/post_migrate/20170606202615_move_appearance_to_system_dir.rb index 07935ab8a52..fb9ac8d6daf 100644 --- a/db/post_migrate/20170606202615_move_appearance_to_system_dir.rb +++ b/db/post_migrate/20170606202615_move_appearance_to_system_dir.rb @@ -1,4 +1,4 @@ -class MoveAppearanceToSystemDir < ActiveRecord::Migration +class MoveAppearanceToSystemDir < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20170607121233_convert_custom_notification_settings_to_columns.rb b/db/post_migrate/20170607121233_convert_custom_notification_settings_to_columns.rb index 9abda6a1d73..8ff26130cba 100644 --- a/db/post_migrate/20170607121233_convert_custom_notification_settings_to_columns.rb +++ b/db/post_migrate/20170607121233_convert_custom_notification_settings_to_columns.rb @@ -1,4 +1,4 @@ -class ConvertCustomNotificationSettingsToColumns < ActiveRecord::Migration +class ConvertCustomNotificationSettingsToColumns < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170609183112_remove_position_from_issuables.rb b/db/post_migrate/20170609183112_remove_position_from_issuables.rb index 4caaa2e83e8..edad0a502b4 100644 --- a/db/post_migrate/20170609183112_remove_position_from_issuables.rb +++ b/db/post_migrate/20170609183112_remove_position_from_issuables.rb @@ -1,4 +1,4 @@ -class RemovePositionFromIssuables < ActiveRecord::Migration +class RemovePositionFromIssuables < ActiveRecord::Migration[4.2] DOWNTIME = false def change diff --git a/db/post_migrate/20170612071012_move_personal_snippets_files.rb b/db/post_migrate/20170612071012_move_personal_snippets_files.rb index c735dc67f44..d32d92637fa 100644 --- a/db/post_migrate/20170612071012_move_personal_snippets_files.rb +++ b/db/post_migrate/20170612071012_move_personal_snippets_files.rb @@ -1,6 +1,6 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class MovePersonalSnippetsFiles < ActiveRecord::Migration +class MovePersonalSnippetsFiles < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20170613111224_clean_appearance_symlinks.rb b/db/post_migrate/20170613111224_clean_appearance_symlinks.rb index 17849b78ceb..14511bff3db 100644 --- a/db/post_migrate/20170613111224_clean_appearance_symlinks.rb +++ b/db/post_migrate/20170613111224_clean_appearance_symlinks.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class CleanAppearanceSymlinks < ActiveRecord::Migration +class CleanAppearanceSymlinks < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20170621102400_add_stage_id_index_to_builds.rb b/db/post_migrate/20170621102400_add_stage_id_index_to_builds.rb index ac61b5c84a8..cca9b488547 100644 --- a/db/post_migrate/20170621102400_add_stage_id_index_to_builds.rb +++ b/db/post_migrate/20170621102400_add_stage_id_index_to_builds.rb @@ -1,4 +1,4 @@ -class AddStageIdIndexToBuilds < ActiveRecord::Migration +class AddStageIdIndexToBuilds < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170627101016_schedule_event_migrations.rb b/db/post_migrate/20170627101016_schedule_event_migrations.rb index 1e020d05f78..f026a86bc0f 100644 --- a/db/post_migrate/20170627101016_schedule_event_migrations.rb +++ b/db/post_migrate/20170627101016_schedule_event_migrations.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class ScheduleEventMigrations < ActiveRecord::Migration +class ScheduleEventMigrations < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170628080858_migrate_stage_id_reference_in_background.rb b/db/post_migrate/20170628080858_migrate_stage_id_reference_in_background.rb index f31015d77a3..36aac3df071 100644 --- a/db/post_migrate/20170628080858_migrate_stage_id_reference_in_background.rb +++ b/db/post_migrate/20170628080858_migrate_stage_id_reference_in_background.rb @@ -1,4 +1,4 @@ -class MigrateStageIdReferenceInBackground < ActiveRecord::Migration +class MigrateStageIdReferenceInBackground < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170629180131_cleanup_application_settings_signin_enabled_rename.rb b/db/post_migrate/20170629180131_cleanup_application_settings_signin_enabled_rename.rb index 52a773ddfee..87268fb4b31 100644 --- a/db/post_migrate/20170629180131_cleanup_application_settings_signin_enabled_rename.rb +++ b/db/post_migrate/20170629180131_cleanup_application_settings_signin_enabled_rename.rb @@ -1,4 +1,4 @@ -class CleanupApplicationSettingsSigninEnabledRename < ActiveRecord::Migration +class CleanupApplicationSettingsSigninEnabledRename < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170703130158_schedule_merge_request_diff_migrations.rb b/db/post_migrate/20170703130158_schedule_merge_request_diff_migrations.rb index 17a9dc293f1..fd4b2859f7f 100644 --- a/db/post_migrate/20170703130158_schedule_merge_request_diff_migrations.rb +++ b/db/post_migrate/20170703130158_schedule_merge_request_diff_migrations.rb @@ -1,4 +1,4 @@ -class ScheduleMergeRequestDiffMigrations < ActiveRecord::Migration +class ScheduleMergeRequestDiffMigrations < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170711145558_migrate_stages_statuses.rb b/db/post_migrate/20170711145558_migrate_stages_statuses.rb index 265f7317b9b..8ba69ea4dce 100644 --- a/db/post_migrate/20170711145558_migrate_stages_statuses.rb +++ b/db/post_migrate/20170711145558_migrate_stages_statuses.rb @@ -1,4 +1,4 @@ -class MigrateStagesStatuses < ActiveRecord::Migration +class MigrateStagesStatuses < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170717111152_cleanup_move_system_upload_folder_symlink.rb b/db/post_migrate/20170717111152_cleanup_move_system_upload_folder_symlink.rb index 3ae4406ff96..392c4f71532 100644 --- a/db/post_migrate/20170717111152_cleanup_move_system_upload_folder_symlink.rb +++ b/db/post_migrate/20170717111152_cleanup_move_system_upload_folder_symlink.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class CleanupMoveSystemUploadFolderSymlink < ActiveRecord::Migration +class CleanupMoveSystemUploadFolderSymlink < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170717150329_enqueue_migrate_system_uploads_to_new_folder.rb b/db/post_migrate/20170717150329_enqueue_migrate_system_uploads_to_new_folder.rb index 87069dce006..fdd990ae2e5 100644 --- a/db/post_migrate/20170717150329_enqueue_migrate_system_uploads_to_new_folder.rb +++ b/db/post_migrate/20170717150329_enqueue_migrate_system_uploads_to_new_folder.rb @@ -1,4 +1,4 @@ -class EnqueueMigrateSystemUploadsToNewFolder < ActiveRecord::Migration +class EnqueueMigrateSystemUploadsToNewFolder < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170719150301_merge_issuable_reopened_into_opened_state.rb b/db/post_migrate/20170719150301_merge_issuable_reopened_into_opened_state.rb index acc0fc7a0ac..7af1d04f0cc 100644 --- a/db/post_migrate/20170719150301_merge_issuable_reopened_into_opened_state.rb +++ b/db/post_migrate/20170719150301_merge_issuable_reopened_into_opened_state.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class MergeIssuableReopenedIntoOpenedState < ActiveRecord::Migration +class MergeIssuableReopenedIntoOpenedState < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170728101014_remove_events_from_notification_settings.rb b/db/post_migrate/20170728101014_remove_events_from_notification_settings.rb index cd533391d8d..f1b0a1daec5 100644 --- a/db/post_migrate/20170728101014_remove_events_from_notification_settings.rb +++ b/db/post_migrate/20170728101014_remove_events_from_notification_settings.rb @@ -1,4 +1,4 @@ -class RemoveEventsFromNotificationSettings < ActiveRecord::Migration +class RemoveEventsFromNotificationSettings < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170803090603_calculate_conv_dev_index_percentages.rb b/db/post_migrate/20170803090603_calculate_conv_dev_index_percentages.rb index 9af76c94bf3..a148586ca89 100644 --- a/db/post_migrate/20170803090603_calculate_conv_dev_index_percentages.rb +++ b/db/post_migrate/20170803090603_calculate_conv_dev_index_percentages.rb @@ -1,4 +1,4 @@ -class CalculateConvDevIndexPercentages < ActiveRecord::Migration +class CalculateConvDevIndexPercentages < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170807160457_remove_locked_at_column_from_merge_requests.rb b/db/post_migrate/20170807160457_remove_locked_at_column_from_merge_requests.rb index ea3d1fb3e02..6dc49211e5a 100644 --- a/db/post_migrate/20170807160457_remove_locked_at_column_from_merge_requests.rb +++ b/db/post_migrate/20170807160457_remove_locked_at_column_from_merge_requests.rb @@ -1,4 +1,4 @@ -class RemoveLockedAtColumnFromMergeRequests < ActiveRecord::Migration +class RemoveLockedAtColumnFromMergeRequests < ActiveRecord::Migration[4.2] DOWNTIME = false def up diff --git a/db/post_migrate/20170807190736_move_personal_snippet_files_into_correct_folder.rb b/db/post_migrate/20170807190736_move_personal_snippet_files_into_correct_folder.rb index e3d2446b897..8341ac39c25 100644 --- a/db/post_migrate/20170807190736_move_personal_snippet_files_into_correct_folder.rb +++ b/db/post_migrate/20170807190736_move_personal_snippet_files_into_correct_folder.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class MovePersonalSnippetFilesIntoCorrectFolder < ActiveRecord::Migration +class MovePersonalSnippetFilesIntoCorrectFolder < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20170815060945_remove_duplicate_mr_events.rb b/db/post_migrate/20170815060945_remove_duplicate_mr_events.rb index 6132b553177..fdc126b8fd6 100644 --- a/db/post_migrate/20170815060945_remove_duplicate_mr_events.rb +++ b/db/post_migrate/20170815060945_remove_duplicate_mr_events.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveDuplicateMrEvents < ActiveRecord::Migration +class RemoveDuplicateMrEvents < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170816102555_cleanup_nonexisting_namespace_pending_delete_projects.rb b/db/post_migrate/20170816102555_cleanup_nonexisting_namespace_pending_delete_projects.rb index 3f085c17133..27656fd926d 100644 --- a/db/post_migrate/20170816102555_cleanup_nonexisting_namespace_pending_delete_projects.rb +++ b/db/post_migrate/20170816102555_cleanup_nonexisting_namespace_pending_delete_projects.rb @@ -1,7 +1,7 @@ # Follow up of CleanupNamespacelessPendingDeleteProjects and it cleans # all projects with `pending_delete = true` and for which the # namespace no longer exists. -class CleanupNonexistingNamespacePendingDeleteProjects < ActiveRecord::Migration +class CleanupNonexistingNamespacePendingDeleteProjects < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170822101017_migrate_pipeline_sidekiq_queues.rb b/db/post_migrate/20170822101017_migrate_pipeline_sidekiq_queues.rb index 8441cfe7968..825bc9250bd 100644 --- a/db/post_migrate/20170822101017_migrate_pipeline_sidekiq_queues.rb +++ b/db/post_migrate/20170822101017_migrate_pipeline_sidekiq_queues.rb @@ -1,4 +1,4 @@ -class MigratePipelineSidekiqQueues < ActiveRecord::Migration +class MigratePipelineSidekiqQueues < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170828170502_post_deploy_migrate_user_external_mail_data.rb b/db/post_migrate/20170828170502_post_deploy_migrate_user_external_mail_data.rb index fd1437b07f5..533155aeb7a 100644 --- a/db/post_migrate/20170828170502_post_deploy_migrate_user_external_mail_data.rb +++ b/db/post_migrate/20170828170502_post_deploy_migrate_user_external_mail_data.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class PostDeployMigrateUserExternalMailData < ActiveRecord::Migration +class PostDeployMigrateUserExternalMailData < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170828170513_remove_user_email_provider_column.rb b/db/post_migrate/20170828170513_remove_user_email_provider_column.rb index 570f2b3772a..bfc8aede540 100644 --- a/db/post_migrate/20170828170513_remove_user_email_provider_column.rb +++ b/db/post_migrate/20170828170513_remove_user_email_provider_column.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveUserEmailProviderColumn < ActiveRecord::Migration +class RemoveUserEmailProviderColumn < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170828170516_remove_user_external_mail_columns.rb b/db/post_migrate/20170828170516_remove_user_external_mail_columns.rb index bb81dc682b3..0104955e5c8 100644 --- a/db/post_migrate/20170828170516_remove_user_external_mail_columns.rb +++ b/db/post_migrate/20170828170516_remove_user_external_mail_columns.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveUserExternalMailColumns < ActiveRecord::Migration +class RemoveUserExternalMailColumns < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170830084744_destroy_gpg_signatures.rb b/db/post_migrate/20170830084744_destroy_gpg_signatures.rb index b04d36f6537..2945eb9fde6 100644 --- a/db/post_migrate/20170830084744_destroy_gpg_signatures.rb +++ b/db/post_migrate/20170830084744_destroy_gpg_signatures.rb @@ -1,4 +1,4 @@ -class DestroyGpgSignatures < ActiveRecord::Migration +class DestroyGpgSignatures < ActiveRecord::Migration[4.2] DOWNTIME = false def up diff --git a/db/post_migrate/20170830150306_drop_events_for_migration_table.rb b/db/post_migrate/20170830150306_drop_events_for_migration_table.rb index 69a612ead40..3538b52b004 100644 --- a/db/post_migrate/20170830150306_drop_events_for_migration_table.rb +++ b/db/post_migrate/20170830150306_drop_events_for_migration_table.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class DropEventsForMigrationTable < ActiveRecord::Migration +class DropEventsForMigrationTable < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170831195038_remove_valid_signature_from_gpg_signatures.rb b/db/post_migrate/20170831195038_remove_valid_signature_from_gpg_signatures.rb index 9b6745e33d9..8e264c1ab41 100644 --- a/db/post_migrate/20170831195038_remove_valid_signature_from_gpg_signatures.rb +++ b/db/post_migrate/20170831195038_remove_valid_signature_from_gpg_signatures.rb @@ -1,4 +1,4 @@ -class RemoveValidSignatureFromGpgSignatures < ActiveRecord::Migration +class RemoveValidSignatureFromGpgSignatures < ActiveRecord::Migration[4.2] DOWNTIME = false def up diff --git a/db/post_migrate/20170907170235_delete_conflicting_redirect_routes.rb b/db/post_migrate/20170907170235_delete_conflicting_redirect_routes.rb index 033019c398e..95abf2474dd 100644 --- a/db/post_migrate/20170907170235_delete_conflicting_redirect_routes.rb +++ b/db/post_migrate/20170907170235_delete_conflicting_redirect_routes.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class DeleteConflictingRedirectRoutes < ActiveRecord::Migration +class DeleteConflictingRedirectRoutes < ActiveRecord::Migration[4.2] def up # No-op. # See https://gitlab.com/gitlab-com/infrastructure/issues/3460#note_53223252 diff --git a/db/post_migrate/20170913180600_fix_projects_without_project_feature.rb b/db/post_migrate/20170913180600_fix_projects_without_project_feature.rb index bfa9ad80c7d..bbc624ac7c0 100644 --- a/db/post_migrate/20170913180600_fix_projects_without_project_feature.rb +++ b/db/post_migrate/20170913180600_fix_projects_without_project_feature.rb @@ -1,4 +1,4 @@ -class FixProjectsWithoutProjectFeature < ActiveRecord::Migration +class FixProjectsWithoutProjectFeature < ActiveRecord::Migration[4.2] DOWNTIME = false def up diff --git a/db/post_migrate/20170921101004_normalize_ldap_extern_uids.rb b/db/post_migrate/20170921101004_normalize_ldap_extern_uids.rb index 2230bb0e53c..9080acee1d6 100644 --- a/db/post_migrate/20170921101004_normalize_ldap_extern_uids.rb +++ b/db/post_migrate/20170921101004_normalize_ldap_extern_uids.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class NormalizeLdapExternUids < ActiveRecord::Migration +class NormalizeLdapExternUids < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170926150348_schedule_merge_request_diff_migrations_take_two.rb b/db/post_migrate/20170926150348_schedule_merge_request_diff_migrations_take_two.rb index 5732cb85ea5..9b675a51725 100644 --- a/db/post_migrate/20170926150348_schedule_merge_request_diff_migrations_take_two.rb +++ b/db/post_migrate/20170926150348_schedule_merge_request_diff_migrations_take_two.rb @@ -1,4 +1,4 @@ -class ScheduleMergeRequestDiffMigrationsTakeTwo < ActiveRecord::Migration +class ScheduleMergeRequestDiffMigrationsTakeTwo < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170927112318_update_legacy_diff_notes_type_for_import.rb b/db/post_migrate/20170927112318_update_legacy_diff_notes_type_for_import.rb index b040c81b316..83c21c203e0 100644 --- a/db/post_migrate/20170927112318_update_legacy_diff_notes_type_for_import.rb +++ b/db/post_migrate/20170927112318_update_legacy_diff_notes_type_for_import.rb @@ -1,5 +1,5 @@ # rubocop:disable Migration/UpdateLargeTable -class UpdateLegacyDiffNotesTypeForImport < ActiveRecord::Migration +class UpdateLegacyDiffNotesTypeForImport < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20170927112319_update_notes_type_for_import.rb b/db/post_migrate/20170927112319_update_notes_type_for_import.rb index 5a400c71b02..8c691de3192 100644 --- a/db/post_migrate/20170927112319_update_notes_type_for_import.rb +++ b/db/post_migrate/20170927112319_update_notes_type_for_import.rb @@ -1,5 +1,5 @@ # rubocop:disable Migration/UpdateLargeTable -class UpdateNotesTypeForImport < ActiveRecord::Migration +class UpdateNotesTypeForImport < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys.rb b/db/post_migrate/20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys.rb index 467c584c2e0..e49a70f902c 100644 --- a/db/post_migrate/20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys.rb +++ b/db/post_migrate/20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class ScheduleCreateGpgKeySubkeysFromGpgKeys < ActiveRecord::Migration +class ScheduleCreateGpgKeySubkeysFromGpgKeys < ActiveRecord::Migration[4.2] disable_ddl_transaction! DOWNTIME = false diff --git a/db/post_migrate/20171012150314_remove_user_authentication_token.rb b/db/post_migrate/20171012150314_remove_user_authentication_token.rb index d0f3aa06e98..9313986ce85 100644 --- a/db/post_migrate/20171012150314_remove_user_authentication_token.rb +++ b/db/post_migrate/20171012150314_remove_user_authentication_token.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveUserAuthenticationToken < ActiveRecord::Migration +class RemoveUserAuthenticationToken < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171013104327_migrate_gcp_clusters_to_new_clusters_architectures.rb b/db/post_migrate/20171013104327_migrate_gcp_clusters_to_new_clusters_architectures.rb index 28cd0f70cc2..9c90aa611a4 100644 --- a/db/post_migrate/20171013104327_migrate_gcp_clusters_to_new_clusters_architectures.rb +++ b/db/post_migrate/20171013104327_migrate_gcp_clusters_to_new_clusters_architectures.rb @@ -1,4 +1,4 @@ -class MigrateGcpClustersToNewClustersArchitectures < ActiveRecord::Migration +class MigrateGcpClustersToNewClustersArchitectures < ActiveRecord::Migration[4.2] DOWNTIME = false class GcpCluster < ActiveRecord::Base diff --git a/db/post_migrate/20171026082505_schedule_merge_request_latest_merge_request_diff_id_migrations.rb b/db/post_migrate/20171026082505_schedule_merge_request_latest_merge_request_diff_id_migrations.rb index 7a63382cc6d..764561de997 100644 --- a/db/post_migrate/20171026082505_schedule_merge_request_latest_merge_request_diff_id_migrations.rb +++ b/db/post_migrate/20171026082505_schedule_merge_request_latest_merge_request_diff_id_migrations.rb @@ -1,4 +1,4 @@ -class ScheduleMergeRequestLatestMergeRequestDiffIdMigrations < ActiveRecord::Migration +class ScheduleMergeRequestLatestMergeRequestDiffIdMigrations < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb b/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb index 4e8f495d65d..e6a5ffc8649 100644 --- a/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb +++ b/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb @@ -1,4 +1,4 @@ -class RemoveRefFetchedFromMergeRequests < ActiveRecord::Migration +class RemoveRefFetchedFromMergeRequests < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20171103140253_track_untracked_uploads.rb b/db/post_migrate/20171103140253_track_untracked_uploads.rb index 548a94d2d38..6891ef5ba12 100644 --- a/db/post_migrate/20171103140253_track_untracked_uploads.rb +++ b/db/post_migrate/20171103140253_track_untracked_uploads.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class TrackUntrackedUploads < ActiveRecord::Migration +class TrackUntrackedUploads < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20171106133144_cleanup_application_settings_password_authentication_enabled_rename.rb b/db/post_migrate/20171106133144_cleanup_application_settings_password_authentication_enabled_rename.rb index d54ff3d5f5e..4a01bf75f50 100644 --- a/db/post_migrate/20171106133144_cleanup_application_settings_password_authentication_enabled_rename.rb +++ b/db/post_migrate/20171106133144_cleanup_application_settings_password_authentication_enabled_rename.rb @@ -1,4 +1,4 @@ -class CleanupApplicationSettingsPasswordAuthenticationEnabledRename < ActiveRecord::Migration +class CleanupApplicationSettingsPasswordAuthenticationEnabledRename < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171106154015_remove_issues_branch_name.rb b/db/post_migrate/20171106154015_remove_issues_branch_name.rb index 3d08225c96d..4e71aa2f163 100644 --- a/db/post_migrate/20171106154015_remove_issues_branch_name.rb +++ b/db/post_migrate/20171106154015_remove_issues_branch_name.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveIssuesBranchName < ActiveRecord::Migration +class RemoveIssuesBranchName < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20171106180641_cleanup_add_timezone_to_issues_closed_at.rb b/db/post_migrate/20171106180641_cleanup_add_timezone_to_issues_closed_at.rb index 53f376f216b..8187d3971fc 100644 --- a/db/post_migrate/20171106180641_cleanup_add_timezone_to_issues_closed_at.rb +++ b/db/post_migrate/20171106180641_cleanup_add_timezone_to_issues_closed_at.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class CleanupAddTimezoneToIssuesClosedAt < ActiveRecord::Migration +class CleanupAddTimezoneToIssuesClosedAt < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171114104051_remove_empty_fork_networks.rb b/db/post_migrate/20171114104051_remove_empty_fork_networks.rb index 2fe99a1b9c1..76862cccf60 100644 --- a/db/post_migrate/20171114104051_remove_empty_fork_networks.rb +++ b/db/post_migrate/20171114104051_remove_empty_fork_networks.rb @@ -1,4 +1,4 @@ -class RemoveEmptyForkNetworks < ActiveRecord::Migration +class RemoveEmptyForkNetworks < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171121160421_remove_merge_request_diff_st_commits_and_st_diffs.rb b/db/post_migrate/20171121160421_remove_merge_request_diff_st_commits_and_st_diffs.rb index 3a7b2a7fac0..93a97993f1f 100644 --- a/db/post_migrate/20171121160421_remove_merge_request_diff_st_commits_and_st_diffs.rb +++ b/db/post_migrate/20171121160421_remove_merge_request_diff_st_commits_and_st_diffs.rb @@ -1,4 +1,4 @@ -class RemoveMergeRequestDiffStCommitsAndStDiffs < ActiveRecord::Migration +class RemoveMergeRequestDiffStCommitsAndStDiffs < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171123101020_update_circuitbreaker_defaults.rb b/db/post_migrate/20171123101020_update_circuitbreaker_defaults.rb index 8e1c9e6d6bb..ae954289291 100644 --- a/db/post_migrate/20171123101020_update_circuitbreaker_defaults.rb +++ b/db/post_migrate/20171123101020_update_circuitbreaker_defaults.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class UpdateCircuitbreakerDefaults < ActiveRecord::Migration +class UpdateCircuitbreakerDefaults < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171123101046_remove_old_circuitbreaker_config.rb b/db/post_migrate/20171123101046_remove_old_circuitbreaker_config.rb index e646d4d3224..3f2c1b2170a 100644 --- a/db/post_migrate/20171123101046_remove_old_circuitbreaker_config.rb +++ b/db/post_migrate/20171123101046_remove_old_circuitbreaker_config.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveOldCircuitbreakerConfig < ActiveRecord::Migration +class RemoveOldCircuitbreakerConfig < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171124095655_add_index_on_merge_request_diffs_merge_request_id_and_id.rb b/db/post_migrate/20171124095655_add_index_on_merge_request_diffs_merge_request_id_and_id.rb index 698df712c11..2c65a4ae4f5 100644 --- a/db/post_migrate/20171124095655_add_index_on_merge_request_diffs_merge_request_id_and_id.rb +++ b/db/post_migrate/20171124095655_add_index_on_merge_request_diffs_merge_request_id_and_id.rb @@ -1,4 +1,4 @@ -class AddIndexOnMergeRequestDiffsMergeRequestIdAndId < ActiveRecord::Migration +class AddIndexOnMergeRequestDiffsMergeRequestIdAndId < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171124100152_remove_index_on_merge_request_diffs_merge_request_diff_id.rb b/db/post_migrate/20171124100152_remove_index_on_merge_request_diffs_merge_request_diff_id.rb index 038e4807000..efd3714d668 100644 --- a/db/post_migrate/20171124100152_remove_index_on_merge_request_diffs_merge_request_diff_id.rb +++ b/db/post_migrate/20171124100152_remove_index_on_merge_request_diffs_merge_request_diff_id.rb @@ -1,4 +1,4 @@ -class RemoveIndexOnMergeRequestDiffsMergeRequestDiffId < ActiveRecord::Migration +class RemoveIndexOnMergeRequestDiffsMergeRequestDiffId < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb b/db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb index a957f107405..58ceefe3c97 100644 --- a/db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb +++ b/db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb @@ -1,4 +1,4 @@ -class MigrateKubernetesServiceToNewClustersArchitectures < ActiveRecord::Migration +class MigrateKubernetesServiceToNewClustersArchitectures < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171124150326_reschedule_fork_network_creation.rb b/db/post_migrate/20171124150326_reschedule_fork_network_creation.rb index 26f917d5a1e..8e320ea9e8d 100644 --- a/db/post_migrate/20171124150326_reschedule_fork_network_creation.rb +++ b/db/post_migrate/20171124150326_reschedule_fork_network_creation.rb @@ -1,4 +1,4 @@ -class RescheduleForkNetworkCreation < ActiveRecord::Migration +class RescheduleForkNetworkCreation < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171128214150_schedule_populate_merge_request_metrics_with_events_data.rb b/db/post_migrate/20171128214150_schedule_populate_merge_request_metrics_with_events_data.rb index 980f76e7d57..51441a36e4b 100644 --- a/db/post_migrate/20171128214150_schedule_populate_merge_request_metrics_with_events_data.rb +++ b/db/post_migrate/20171128214150_schedule_populate_merge_request_metrics_with_events_data.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class SchedulePopulateMergeRequestMetricsWithEventsData < ActiveRecord::Migration +class SchedulePopulateMergeRequestMetricsWithEventsData < ActiveRecord::Migration[4.2] DOWNTIME = false BATCH_SIZE = 10_000 MIGRATION = 'PopulateMergeRequestMetricsWithEventsData' diff --git a/db/post_migrate/20171205190711_reschedule_fork_network_creation_caller.rb b/db/post_migrate/20171205190711_reschedule_fork_network_creation_caller.rb index 30ff5173192..058f3a40817 100644 --- a/db/post_migrate/20171205190711_reschedule_fork_network_creation_caller.rb +++ b/db/post_migrate/20171205190711_reschedule_fork_network_creation_caller.rb @@ -1,4 +1,4 @@ -class RescheduleForkNetworkCreationCaller < ActiveRecord::Migration +class RescheduleForkNetworkCreationCaller < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171207150300_remove_project_labels_group_id_copy.rb b/db/post_migrate/20171207150300_remove_project_labels_group_id_copy.rb index 2f339172eeb..44273cebc9d 100644 --- a/db/post_migrate/20171207150300_remove_project_labels_group_id_copy.rb +++ b/db/post_migrate/20171207150300_remove_project_labels_group_id_copy.rb @@ -1,7 +1,7 @@ # Copy of 20180202111106 - this one should run before 20171207150343 to fix issues related to # the removal of groups with labels. -class RemoveProjectLabelsGroupIdCopy < ActiveRecord::Migration +class RemoveProjectLabelsGroupIdCopy < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171207150343_remove_soft_removed_objects.rb b/db/post_migrate/20171207150343_remove_soft_removed_objects.rb index 3109b6dbf8e..53707c67d36 100644 --- a/db/post_migrate/20171207150343_remove_soft_removed_objects.rb +++ b/db/post_migrate/20171207150343_remove_soft_removed_objects.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveSoftRemovedObjects < ActiveRecord::Migration +class RemoveSoftRemovedObjects < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20171207150344_remove_deleted_at_columns.rb b/db/post_migrate/20171207150344_remove_deleted_at_columns.rb index 154d7a1b926..5f1c70a2797 100644 --- a/db/post_migrate/20171207150344_remove_deleted_at_columns.rb +++ b/db/post_migrate/20171207150344_remove_deleted_at_columns.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveDeletedAtColumns < ActiveRecord::Migration +class RemoveDeletedAtColumns < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171213160445_migrate_github_importer_advance_stage_sidekiq_queue.rb b/db/post_migrate/20171213160445_migrate_github_importer_advance_stage_sidekiq_queue.rb index 149c28f1946..088c4b5d46b 100644 --- a/db/post_migrate/20171213160445_migrate_github_importer_advance_stage_sidekiq_queue.rb +++ b/db/post_migrate/20171213160445_migrate_github_importer_advance_stage_sidekiq_queue.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class MigrateGithubImporterAdvanceStageSidekiqQueue < ActiveRecord::Migration +class MigrateGithubImporterAdvanceStageSidekiqQueue < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171215121205_post_populate_can_push_from_deploy_keys_projects.rb b/db/post_migrate/20171215121205_post_populate_can_push_from_deploy_keys_projects.rb index 3a5850df3db..1c81e56db55 100644 --- a/db/post_migrate/20171215121205_post_populate_can_push_from_deploy_keys_projects.rb +++ b/db/post_migrate/20171215121205_post_populate_can_push_from_deploy_keys_projects.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class PostPopulateCanPushFromDeployKeysProjects < ActiveRecord::Migration +class PostPopulateCanPushFromDeployKeysProjects < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171215121259_remove_can_push_from_keys.rb b/db/post_migrate/20171215121259_remove_can_push_from_keys.rb index 0599811d986..fc4045a383d 100644 --- a/db/post_migrate/20171215121259_remove_can_push_from_keys.rb +++ b/db/post_migrate/20171215121259_remove_can_push_from_keys.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveCanPushFromKeys < ActiveRecord::Migration +class RemoveCanPushFromKeys < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171219121201_normalize_extern_uid_from_identities.rb b/db/post_migrate/20171219121201_normalize_extern_uid_from_identities.rb index 286721a0894..45ef75fdb98 100644 --- a/db/post_migrate/20171219121201_normalize_extern_uid_from_identities.rb +++ b/db/post_migrate/20171219121201_normalize_extern_uid_from_identities.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class NormalizeExternUidFromIdentities < ActiveRecord::Migration +class NormalizeExternUidFromIdentities < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20171221140220_schedule_issues_closed_at_type_change.rb b/db/post_migrate/20171221140220_schedule_issues_closed_at_type_change.rb index eeecc7b1de0..6b5e6202688 100644 --- a/db/post_migrate/20171221140220_schedule_issues_closed_at_type_change.rb +++ b/db/post_migrate/20171221140220_schedule_issues_closed_at_type_change.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. # rubocop:disable Migration/Datetime -class ScheduleIssuesClosedAtTypeChange < ActiveRecord::Migration +class ScheduleIssuesClosedAtTypeChange < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180104131052_schedule_set_confidential_note_events_on_webhooks.rb b/db/post_migrate/20180104131052_schedule_set_confidential_note_events_on_webhooks.rb index fa51ac83619..0822aebc2c6 100644 --- a/db/post_migrate/20180104131052_schedule_set_confidential_note_events_on_webhooks.rb +++ b/db/post_migrate/20180104131052_schedule_set_confidential_note_events_on_webhooks.rb @@ -1,4 +1,4 @@ -class ScheduleSetConfidentialNoteEventsOnWebhooks < ActiveRecord::Migration +class ScheduleSetConfidentialNoteEventsOnWebhooks < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb b/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb index 269f1287f91..0a2ea7bfb7b 100644 --- a/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb +++ b/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb @@ -1,4 +1,4 @@ -class RemoveRedundantPipelineStages < ActiveRecord::Migration +class RemoveRedundantPipelineStages < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180122154930_schedule_set_confidential_note_events_on_services.rb b/db/post_migrate/20180122154930_schedule_set_confidential_note_events_on_services.rb index a3ff9f1719e..98bbb34dda1 100644 --- a/db/post_migrate/20180122154930_schedule_set_confidential_note_events_on_services.rb +++ b/db/post_migrate/20180122154930_schedule_set_confidential_note_events_on_services.rb @@ -1,4 +1,4 @@ -class ScheduleSetConfidentialNoteEventsOnServices < ActiveRecord::Migration +class ScheduleSetConfidentialNoteEventsOnServices < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180202111106_remove_project_labels_group_id.rb b/db/post_migrate/20180202111106_remove_project_labels_group_id.rb index db7fd0d167d..31ec84f0d6a 100644 --- a/db/post_migrate/20180202111106_remove_project_labels_group_id.rb +++ b/db/post_migrate/20180202111106_remove_project_labels_group_id.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveProjectLabelsGroupId < ActiveRecord::Migration +class RemoveProjectLabelsGroupId < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180204200836_change_author_id_to_not_null_in_todos.rb b/db/post_migrate/20180204200836_change_author_id_to_not_null_in_todos.rb index 92c32feebf7..54b8a91fa47 100644 --- a/db/post_migrate/20180204200836_change_author_id_to_not_null_in_todos.rb +++ b/db/post_migrate/20180204200836_change_author_id_to_not_null_in_todos.rb @@ -1,4 +1,4 @@ -class ChangeAuthorIdToNotNullInTodos < ActiveRecord::Migration +class ChangeAuthorIdToNotNullInTodos < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers class Todo < ActiveRecord::Base diff --git a/db/post_migrate/20180212101828_add_tmp_partial_null_index_to_builds.rb b/db/post_migrate/20180212101828_add_tmp_partial_null_index_to_builds.rb index e55e2e6f888..f8badcac990 100644 --- a/db/post_migrate/20180212101828_add_tmp_partial_null_index_to_builds.rb +++ b/db/post_migrate/20180212101828_add_tmp_partial_null_index_to_builds.rb @@ -1,4 +1,4 @@ -class AddTmpPartialNullIndexToBuilds < ActiveRecord::Migration +class AddTmpPartialNullIndexToBuilds < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20180212101928_schedule_build_stage_migration.rb b/db/post_migrate/20180212101928_schedule_build_stage_migration.rb index 0f61fa81832..2445ab1a130 100644 --- a/db/post_migrate/20180212101928_schedule_build_stage_migration.rb +++ b/db/post_migrate/20180212101928_schedule_build_stage_migration.rb @@ -1,4 +1,4 @@ -class ScheduleBuildStageMigration < ActiveRecord::Migration +class ScheduleBuildStageMigration < ActiveRecord::Migration[4.2] ## # This migration has been rescheduled to run again, see # `20180405101928_reschedule_builds_stages_migration.rb` diff --git a/db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb b/db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb index ed7b1fc72f4..2444df881b8 100644 --- a/db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb +++ b/db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb @@ -1,4 +1,4 @@ -class RemoveTmpPartialNullIndexFromBuilds < ActiveRecord::Migration +class RemoveTmpPartialNullIndexFromBuilds < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20180216121020_fill_pages_domain_verification_code.rb b/db/post_migrate/20180216121020_fill_pages_domain_verification_code.rb index d423673d2a5..dae43ee14df 100644 --- a/db/post_migrate/20180216121020_fill_pages_domain_verification_code.rb +++ b/db/post_migrate/20180216121020_fill_pages_domain_verification_code.rb @@ -1,4 +1,4 @@ -class FillPagesDomainVerificationCode < ActiveRecord::Migration +class FillPagesDomainVerificationCode < ActiveRecord::Migration[4.2] DOWNTIME = false class PagesDomain < ActiveRecord::Base diff --git a/db/post_migrate/20180216121030_enqueue_verify_pages_domain_workers.rb b/db/post_migrate/20180216121030_enqueue_verify_pages_domain_workers.rb index bf9bf4e660f..d776fb85f00 100644 --- a/db/post_migrate/20180216121030_enqueue_verify_pages_domain_workers.rb +++ b/db/post_migrate/20180216121030_enqueue_verify_pages_domain_workers.rb @@ -1,4 +1,4 @@ -class EnqueueVerifyPagesDomainWorkers < ActiveRecord::Migration +class EnqueueVerifyPagesDomainWorkers < ActiveRecord::Migration[4.2] class PagesDomain < ActiveRecord::Base include EachBatch end diff --git a/db/post_migrate/20180220150310_remove_empty_extern_uid_auth0_identities.rb b/db/post_migrate/20180220150310_remove_empty_extern_uid_auth0_identities.rb index 2d5a8617169..86ef333685e 100644 --- a/db/post_migrate/20180220150310_remove_empty_extern_uid_auth0_identities.rb +++ b/db/post_migrate/20180220150310_remove_empty_extern_uid_auth0_identities.rb @@ -1,4 +1,4 @@ -class RemoveEmptyExternUidAuth0Identities < ActiveRecord::Migration +class RemoveEmptyExternUidAuth0Identities < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180223124427_build_user_interacted_projects_table.rb b/db/post_migrate/20180223124427_build_user_interacted_projects_table.rb index 8c8dbb1a043..fa332fd5c70 100644 --- a/db/post_migrate/20180223124427_build_user_interacted_projects_table.rb +++ b/db/post_migrate/20180223124427_build_user_interacted_projects_table.rb @@ -1,7 +1,7 @@ require_relative '../migrate/20180223120443_create_user_interacted_projects_table.rb' # rubocop:disable AddIndex # rubocop:disable AddConcurrentForeignKey -class BuildUserInteractedProjectsTable < ActiveRecord::Migration +class BuildUserInteractedProjectsTable < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. @@ -43,7 +43,7 @@ class BuildUserInteractedProjectsTable < ActiveRecord::Migration end end - class PostgresStrategy < ActiveRecord::Migration + class PostgresStrategy < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers BATCH_SIZE = 100_000 @@ -141,7 +141,7 @@ class BuildUserInteractedProjectsTable < ActiveRecord::Migration end end - class MysqlStrategy < ActiveRecord::Migration + class MysqlStrategy < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers def up diff --git a/db/post_migrate/20180301084653_change_project_namespace_id_not_null.rb b/db/post_migrate/20180301084653_change_project_namespace_id_not_null.rb index 0342372cbed..62a239b0e7c 100644 --- a/db/post_migrate/20180301084653_change_project_namespace_id_not_null.rb +++ b/db/post_migrate/20180301084653_change_project_namespace_id_not_null.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class ChangeProjectNamespaceIdNotNull < ActiveRecord::Migration +class ChangeProjectNamespaceIdNotNull < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers class Project < ActiveRecord::Base diff --git a/db/post_migrate/20180305100050_remove_permanent_from_redirect_routes.rb b/db/post_migrate/20180305100050_remove_permanent_from_redirect_routes.rb index aa19732ca1c..15c052da99b 100644 --- a/db/post_migrate/20180305100050_remove_permanent_from_redirect_routes.rb +++ b/db/post_migrate/20180305100050_remove_permanent_from_redirect_routes.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemovePermanentFromRedirectRoutes < ActiveRecord::Migration +class RemovePermanentFromRedirectRoutes < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180306074045_migrate_create_trace_artifact_sidekiq_queue.rb b/db/post_migrate/20180306074045_migrate_create_trace_artifact_sidekiq_queue.rb index 0af1c3bc0a5..fc74f6f1712 100644 --- a/db/post_migrate/20180306074045_migrate_create_trace_artifact_sidekiq_queue.rb +++ b/db/post_migrate/20180306074045_migrate_create_trace_artifact_sidekiq_queue.rb @@ -1,4 +1,4 @@ -class MigrateCreateTraceArtifactSidekiqQueue < ActiveRecord::Migration +class MigrateCreateTraceArtifactSidekiqQueue < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb b/db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb index ca9212fae27..53918250b4c 100644 --- a/db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb +++ b/db/post_migrate/20180306164012_add_path_index_to_redirect_routes.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class AddPathIndexToRedirectRoutes < ActiveRecord::Migration +class AddPathIndexToRedirectRoutes < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20180307012445_migrate_update_head_pipeline_for_merge_request_sidekiq_queue.rb b/db/post_migrate/20180307012445_migrate_update_head_pipeline_for_merge_request_sidekiq_queue.rb index 9728df6d409..372c04429c7 100644 --- a/db/post_migrate/20180307012445_migrate_update_head_pipeline_for_merge_request_sidekiq_queue.rb +++ b/db/post_migrate/20180307012445_migrate_update_head_pipeline_for_merge_request_sidekiq_queue.rb @@ -1,4 +1,4 @@ -class MigrateUpdateHeadPipelineForMergeRequestSidekiqQueue < ActiveRecord::Migration +class MigrateUpdateHeadPipelineForMergeRequestSidekiqQueue < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180405101928_reschedule_builds_stages_migration.rb b/db/post_migrate/20180405101928_reschedule_builds_stages_migration.rb index c32123454f9..213d97b71f7 100644 --- a/db/post_migrate/20180405101928_reschedule_builds_stages_migration.rb +++ b/db/post_migrate/20180405101928_reschedule_builds_stages_migration.rb @@ -1,4 +1,4 @@ -class RescheduleBuildsStagesMigration < ActiveRecord::Migration +class RescheduleBuildsStagesMigration < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers ## diff --git a/db/post_migrate/20180408143355_cleanup_users_rss_token_rename.rb b/db/post_migrate/20180408143355_cleanup_users_rss_token_rename.rb index 3d77ff921c7..813603cb3ad 100644 --- a/db/post_migrate/20180408143355_cleanup_users_rss_token_rename.rb +++ b/db/post_migrate/20180408143355_cleanup_users_rss_token_rename.rb @@ -1,4 +1,4 @@ -class CleanupUsersRssTokenRename < ActiveRecord::Migration +class CleanupUsersRssTokenRename < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers disable_ddl_transaction! diff --git a/db/post_migrate/20180409170809_populate_missing_project_ci_cd_settings.rb b/db/post_migrate/20180409170809_populate_missing_project_ci_cd_settings.rb index 3b0fdb3aeea..0cda3d76a3d 100644 --- a/db/post_migrate/20180409170809_populate_missing_project_ci_cd_settings.rb +++ b/db/post_migrate/20180409170809_populate_missing_project_ci_cd_settings.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class PopulateMissingProjectCiCdSettings < ActiveRecord::Migration +class PopulateMissingProjectCiCdSettings < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180420080616_schedule_stages_index_migration.rb b/db/post_migrate/20180420080616_schedule_stages_index_migration.rb index eb82f098639..2d72e75393f 100644 --- a/db/post_migrate/20180420080616_schedule_stages_index_migration.rb +++ b/db/post_migrate/20180420080616_schedule_stages_index_migration.rb @@ -1,4 +1,4 @@ -class ScheduleStagesIndexMigration < ActiveRecord::Migration +class ScheduleStagesIndexMigration < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180424151928_fill_file_store.rb b/db/post_migrate/20180424151928_fill_file_store.rb index 03d54dab250..45fa10c9550 100644 --- a/db/post_migrate/20180424151928_fill_file_store.rb +++ b/db/post_migrate/20180424151928_fill_file_store.rb @@ -1,4 +1,4 @@ -class FillFileStore < ActiveRecord::Migration +class FillFileStore < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb b/db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb index 0e6ec46e5f0..ba1023866c5 100644 --- a/db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb +++ b/db/post_migrate/20180430143705_backfill_runner_type_for_ci_runners_post_migrate.rb @@ -1,4 +1,4 @@ -class BackfillRunnerTypeForCiRunnersPostMigrate < ActiveRecord::Migration +class BackfillRunnerTypeForCiRunnersPostMigrate < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180502134117_migrate_import_attributes_data_from_projects_to_project_mirror_data.rb b/db/post_migrate/20180502134117_migrate_import_attributes_data_from_projects_to_project_mirror_data.rb index 08d7d64a2c5..b82ee3569c9 100644 --- a/db/post_migrate/20180502134117_migrate_import_attributes_data_from_projects_to_project_mirror_data.rb +++ b/db/post_migrate/20180502134117_migrate_import_attributes_data_from_projects_to_project_mirror_data.rb @@ -1,4 +1,4 @@ -class MigrateImportAttributesDataFromProjectsToProjectMirrorData < ActiveRecord::Migration +class MigrateImportAttributesDataFromProjectsToProjectMirrorData < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180507083701_set_minimal_project_build_timeout.rb b/db/post_migrate/20180507083701_set_minimal_project_build_timeout.rb index fb9616f0c07..34edbb08bcf 100644 --- a/db/post_migrate/20180507083701_set_minimal_project_build_timeout.rb +++ b/db/post_migrate/20180507083701_set_minimal_project_build_timeout.rb @@ -1,4 +1,4 @@ -class SetMinimalProjectBuildTimeout < ActiveRecord::Migration +class SetMinimalProjectBuildTimeout < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180511174224_add_unique_constraint_to_project_features_project_id.rb b/db/post_migrate/20180511174224_add_unique_constraint_to_project_features_project_id.rb index 88a9f5f8256..a526001a91e 100644 --- a/db/post_migrate/20180511174224_add_unique_constraint_to_project_features_project_id.rb +++ b/db/post_migrate/20180511174224_add_unique_constraint_to_project_features_project_id.rb @@ -1,4 +1,4 @@ -class AddUniqueConstraintToProjectFeaturesProjectId < ActiveRecord::Migration +class AddUniqueConstraintToProjectFeaturesProjectId < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180512061621_add_not_null_constraint_to_project_features_project_id.rb b/db/post_migrate/20180512061621_add_not_null_constraint_to_project_features_project_id.rb index 5a6d6ff4a10..e3abbc039e8 100644 --- a/db/post_migrate/20180512061621_add_not_null_constraint_to_project_features_project_id.rb +++ b/db/post_migrate/20180512061621_add_not_null_constraint_to_project_features_project_id.rb @@ -1,4 +1,4 @@ -class AddNotNullConstraintToProjectFeaturesProjectId < ActiveRecord::Migration +class AddNotNullConstraintToProjectFeaturesProjectId < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180514161336_remove_gemnasium_service.rb b/db/post_migrate/20180514161336_remove_gemnasium_service.rb index 6d7806e8daa..5842bde474c 100644 --- a/db/post_migrate/20180514161336_remove_gemnasium_service.rb +++ b/db/post_migrate/20180514161336_remove_gemnasium_service.rb @@ -1,4 +1,4 @@ -class RemoveGemnasiumService < ActiveRecord::Migration +class RemoveGemnasiumService < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180521162137_migrate_remaining_mr_metrics_populating_background_migration.rb b/db/post_migrate/20180521162137_migrate_remaining_mr_metrics_populating_background_migration.rb index 0282688fa40..39666a0cd2a 100644 --- a/db/post_migrate/20180521162137_migrate_remaining_mr_metrics_populating_background_migration.rb +++ b/db/post_migrate/20180521162137_migrate_remaining_mr_metrics_populating_background_migration.rb @@ -1,4 +1,4 @@ -class MigrateRemainingMrMetricsPopulatingBackgroundMigration < ActiveRecord::Migration +class MigrateRemainingMrMetricsPopulatingBackgroundMigration < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180523125103_cleanup_merge_requests_allow_maintainer_to_push_rename.rb b/db/post_migrate/20180523125103_cleanup_merge_requests_allow_maintainer_to_push_rename.rb index 7eca7394f5f..b3b539fd156 100644 --- a/db/post_migrate/20180523125103_cleanup_merge_requests_allow_maintainer_to_push_rename.rb +++ b/db/post_migrate/20180523125103_cleanup_merge_requests_allow_maintainer_to_push_rename.rb @@ -1,4 +1,4 @@ -class CleanupMergeRequestsAllowMaintainerToPushRename < ActiveRecord::Migration +class CleanupMergeRequestsAllowMaintainerToPushRename < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180529152628_schedule_to_archive_legacy_traces.rb b/db/post_migrate/20180529152628_schedule_to_archive_legacy_traces.rb index 965cd3a8714..6246f6afab0 100644 --- a/db/post_migrate/20180529152628_schedule_to_archive_legacy_traces.rb +++ b/db/post_migrate/20180529152628_schedule_to_archive_legacy_traces.rb @@ -1,4 +1,4 @@ -class ScheduleToArchiveLegacyTraces < ActiveRecord::Migration +class ScheduleToArchiveLegacyTraces < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180603190921_migrate_object_storage_upload_sidekiq_queue.rb b/db/post_migrate/20180603190921_migrate_object_storage_upload_sidekiq_queue.rb index 57bee6269b9..bc7c3eb5385 100644 --- a/db/post_migrate/20180603190921_migrate_object_storage_upload_sidekiq_queue.rb +++ b/db/post_migrate/20180603190921_migrate_object_storage_upload_sidekiq_queue.rb @@ -1,4 +1,4 @@ -class MigrateObjectStorageUploadSidekiqQueue < ActiveRecord::Migration +class MigrateObjectStorageUploadSidekiqQueue < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180604123514_cleanup_stages_position_migration.rb b/db/post_migrate/20180604123514_cleanup_stages_position_migration.rb index 5418f442e79..326cdfa27c3 100644 --- a/db/post_migrate/20180604123514_cleanup_stages_position_migration.rb +++ b/db/post_migrate/20180604123514_cleanup_stages_position_migration.rb @@ -1,4 +1,4 @@ -class CleanupStagesPositionMigration < ActiveRecord::Migration +class CleanupStagesPositionMigration < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180608201435_cleanup_merge_requests_allow_collaboration_rename.rb b/db/post_migrate/20180608201435_cleanup_merge_requests_allow_collaboration_rename.rb index 3f3edb8ea3d..5e892f8bace 100644 --- a/db/post_migrate/20180608201435_cleanup_merge_requests_allow_collaboration_rename.rb +++ b/db/post_migrate/20180608201435_cleanup_merge_requests_allow_collaboration_rename.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class CleanupMergeRequestsAllowCollaborationRename < ActiveRecord::Migration +class CleanupMergeRequestsAllowCollaborationRename < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb b/db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb index c4d2f5f61a0..73f6a3a2a43 100644 --- a/db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb +++ b/db/post_migrate/20180619121030_enqueue_delete_diff_files_workers.rb @@ -1,4 +1,4 @@ -class EnqueueDeleteDiffFilesWorkers < ActiveRecord::Migration +class EnqueueDeleteDiffFilesWorkers < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180629191052_add_partial_index_to_projects_for_last_repository_check_at.rb b/db/post_migrate/20180629191052_add_partial_index_to_projects_for_last_repository_check_at.rb index a701d3678db..15c02cd77b8 100644 --- a/db/post_migrate/20180629191052_add_partial_index_to_projects_for_last_repository_check_at.rb +++ b/db/post_migrate/20180629191052_add_partial_index_to_projects_for_last_repository_check_at.rb @@ -1,4 +1,4 @@ -class AddPartialIndexToProjectsForLastRepositoryCheckAt < ActiveRecord::Migration +class AddPartialIndexToProjectsForLastRepositoryCheckAt < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20180702120647_enqueue_fix_cross_project_label_links.rb b/db/post_migrate/20180702120647_enqueue_fix_cross_project_label_links.rb index 59aa41adede..3d3d49e7564 100644 --- a/db/post_migrate/20180702120647_enqueue_fix_cross_project_label_links.rb +++ b/db/post_migrate/20180702120647_enqueue_fix_cross_project_label_links.rb @@ -1,4 +1,4 @@ -class EnqueueFixCrossProjectLabelLinks < ActiveRecord::Migration +class EnqueueFixCrossProjectLabelLinks < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180704145007_update_project_indexes.rb b/db/post_migrate/20180704145007_update_project_indexes.rb index 0e2601ad4fa..0a82f4535a0 100644 --- a/db/post_migrate/20180704145007_update_project_indexes.rb +++ b/db/post_migrate/20180704145007_update_project_indexes.rb @@ -1,7 +1,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class UpdateProjectIndexes < ActiveRecord::Migration +class UpdateProjectIndexes < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180706223200_populate_site_statistics.rb b/db/post_migrate/20180706223200_populate_site_statistics.rb index e78e9eb900a..896965b708f 100644 --- a/db/post_migrate/20180706223200_populate_site_statistics.rb +++ b/db/post_migrate/20180706223200_populate_site_statistics.rb @@ -1,4 +1,4 @@ -class PopulateSiteStatistics < ActiveRecord::Migration +class PopulateSiteStatistics < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180723130817_delete_inconsistent_internal_id_records.rb b/db/post_migrate/20180723130817_delete_inconsistent_internal_id_records.rb index 3b9b95ec9ca..440868005bb 100644 --- a/db/post_migrate/20180723130817_delete_inconsistent_internal_id_records.rb +++ b/db/post_migrate/20180723130817_delete_inconsistent_internal_id_records.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -class DeleteInconsistentInternalIdRecords < ActiveRecord::Migration +class DeleteInconsistentInternalIdRecords < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180809195358_migrate_null_wiki_access_levels.rb b/db/post_migrate/20180809195358_migrate_null_wiki_access_levels.rb index 0a0a33299e4..363219da539 100644 --- a/db/post_migrate/20180809195358_migrate_null_wiki_access_levels.rb +++ b/db/post_migrate/20180809195358_migrate_null_wiki_access_levels.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class MigrateNullWikiAccessLevels < ActiveRecord::Migration +class MigrateNullWikiAccessLevels < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180816161409_migrate_legacy_artifacts_to_job_artifacts.rb b/db/post_migrate/20180816161409_migrate_legacy_artifacts_to_job_artifacts.rb index 2dd711e9c10..6b0d1ef0d0c 100644 --- a/db/post_migrate/20180816161409_migrate_legacy_artifacts_to_job_artifacts.rb +++ b/db/post_migrate/20180816161409_migrate_legacy_artifacts_to_job_artifacts.rb @@ -1,4 +1,4 @@ -class MigrateLegacyArtifactsToJobArtifacts < ActiveRecord::Migration +class MigrateLegacyArtifactsToJobArtifacts < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180816193530_rename_login_root_namespaces.rb b/db/post_migrate/20180816193530_rename_login_root_namespaces.rb index 4ab1250473f..70db8f46d05 100644 --- a/db/post_migrate/20180816193530_rename_login_root_namespaces.rb +++ b/db/post_migrate/20180816193530_rename_login_root_namespaces.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -class RenameLoginRootNamespaces < ActiveRecord::Migration +class RenameLoginRootNamespaces < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers include Gitlab::Database::RenameReservedPathsMigration::V1 diff --git a/db/post_migrate/20180826111825_recalculate_site_statistics.rb b/db/post_migrate/20180826111825_recalculate_site_statistics.rb index 741035a444f..6d27eca38e3 100644 --- a/db/post_migrate/20180826111825_recalculate_site_statistics.rb +++ b/db/post_migrate/20180826111825_recalculate_site_statistics.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class RecalculateSiteStatistics < ActiveRecord::Migration +class RecalculateSiteStatistics < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180906051323_remove_orphaned_label_links.rb b/db/post_migrate/20180906051323_remove_orphaned_label_links.rb index b56b74f483e..a474aaf534c 100644 --- a/db/post_migrate/20180906051323_remove_orphaned_label_links.rb +++ b/db/post_migrate/20180906051323_remove_orphaned_label_links.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class RemoveOrphanedLabelLinks < ActiveRecord::Migration +class RemoveOrphanedLabelLinks < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180913051323_consume_remaining_diff_files_deletion_jobs.rb b/db/post_migrate/20180913051323_consume_remaining_diff_files_deletion_jobs.rb index ed9422a3894..2c266a4695b 100644 --- a/db/post_migrate/20180913051323_consume_remaining_diff_files_deletion_jobs.rb +++ b/db/post_migrate/20180913051323_consume_remaining_diff_files_deletion_jobs.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class ConsumeRemainingDiffFilesDeletionJobs < ActiveRecord::Migration +class ConsumeRemainingDiffFilesDeletionJobs < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180913142237_schedule_digest_personal_access_tokens.rb b/db/post_migrate/20180913142237_schedule_digest_personal_access_tokens.rb index 36be819b245..951cb3b088c 100644 --- a/db/post_migrate/20180913142237_schedule_digest_personal_access_tokens.rb +++ b/db/post_migrate/20180913142237_schedule_digest_personal_access_tokens.rb @@ -1,4 +1,4 @@ -class ScheduleDigestPersonalAccessTokens < ActiveRecord::Migration +class ScheduleDigestPersonalAccessTokens < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180914162043_encrypt_web_hooks_columns.rb b/db/post_migrate/20180914162043_encrypt_web_hooks_columns.rb index 05ec4864a9e..ef864f490bb 100644 --- a/db/post_migrate/20180914162043_encrypt_web_hooks_columns.rb +++ b/db/post_migrate/20180914162043_encrypt_web_hooks_columns.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class EncryptWebHooksColumns < ActiveRecord::Migration +class EncryptWebHooksColumns < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180914201132_remove_sidekiq_throttling_from_application_settings.rb b/db/post_migrate/20180914201132_remove_sidekiq_throttling_from_application_settings.rb index b3ed0d3f1e9..2c007ec395d 100644 --- a/db/post_migrate/20180914201132_remove_sidekiq_throttling_from_application_settings.rb +++ b/db/post_migrate/20180914201132_remove_sidekiq_throttling_from_application_settings.rb @@ -2,7 +2,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class RemoveSidekiqThrottlingFromApplicationSettings < ActiveRecord::Migration +class RemoveSidekiqThrottlingFromApplicationSettings < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20180916014356_populate_external_pipeline_source.rb b/db/post_migrate/20180916014356_populate_external_pipeline_source.rb index 5577d05cf40..a3d2df1f2bd 100644 --- a/db/post_migrate/20180916014356_populate_external_pipeline_source.rb +++ b/db/post_migrate/20180916014356_populate_external_pipeline_source.rb @@ -3,7 +3,7 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class PopulateExternalPipelineSource < ActiveRecord::Migration +class PopulateExternalPipelineSource < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20180917172041_remove_wikis_count_from_site_statistics.rb b/db/post_migrate/20180917172041_remove_wikis_count_from_site_statistics.rb index 0a39abe3bdf..3b8300dabeb 100644 --- a/db/post_migrate/20180917172041_remove_wikis_count_from_site_statistics.rb +++ b/db/post_migrate/20180917172041_remove_wikis_count_from_site_statistics.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -class RemoveWikisCountFromSiteStatistics < ActiveRecord::Migration +class RemoveWikisCountFromSiteStatistics < ActiveRecord::Migration[4.2] def change remove_column :site_statistics, :wikis_count, :integer end diff --git a/db/post_migrate/20181008145341_steal_encrypt_columns.rb b/db/post_migrate/20181008145341_steal_encrypt_columns.rb index c107ac72913..4102643ba13 100644 --- a/db/post_migrate/20181008145341_steal_encrypt_columns.rb +++ b/db/post_migrate/20181008145341_steal_encrypt_columns.rb @@ -1,4 +1,4 @@ -class StealEncryptColumns < ActiveRecord::Migration +class StealEncryptColumns < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20181008145359_remove_web_hooks_token_and_url.rb b/db/post_migrate/20181008145359_remove_web_hooks_token_and_url.rb index 0c44bca5f1a..93e4458b795 100644 --- a/db/post_migrate/20181008145359_remove_web_hooks_token_and_url.rb +++ b/db/post_migrate/20181008145359_remove_web_hooks_token_and_url.rb @@ -1,4 +1,4 @@ -class RemoveWebHooksTokenAndUrl < ActiveRecord::Migration +class RemoveWebHooksTokenAndUrl < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20181008200441_remove_circuit_breaker.rb b/db/post_migrate/20181008200441_remove_circuit_breaker.rb index 838addb7286..378692e8886 100644 --- a/db/post_migrate/20181008200441_remove_circuit_breaker.rb +++ b/db/post_migrate/20181008200441_remove_circuit_breaker.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class RemoveCircuitBreaker < ActiveRecord::Migration +class RemoveCircuitBreaker < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. diff --git a/db/post_migrate/20181010133639_backfill_store_project_full_path_in_repo.rb b/db/post_migrate/20181010133639_backfill_store_project_full_path_in_repo.rb new file mode 100644 index 00000000000..e9ab45ae9a1 --- /dev/null +++ b/db/post_migrate/20181010133639_backfill_store_project_full_path_in_repo.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +class BackfillStoreProjectFullPathInRepo < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + BATCH_SIZE = 1_000 + DELAY_INTERVAL = 5.minutes + UP_MIGRATION = 'BackfillProjectFullpathInRepoConfig::Up' + DOWN_MIGRATION = 'BackfillProjectFullpathInRepoConfig::Down' + + disable_ddl_transaction! + + class Project < ActiveRecord::Base + self.table_name = 'projects' + + include EachBatch + end + + def up + queue_background_migration_jobs_by_range_at_intervals(Project, UP_MIGRATION, DELAY_INTERVAL) + end + + def down + queue_background_migration_jobs_by_range_at_intervals(Project, DOWN_MIGRATION, DELAY_INTERVAL) + end +end diff --git a/db/post_migrate/20181013005024_remove_koding_from_application_settings.rb b/db/post_migrate/20181013005024_remove_koding_from_application_settings.rb index 938a32e4e98..550ad94f4ab 100644 --- a/db/post_migrate/20181013005024_remove_koding_from_application_settings.rb +++ b/db/post_migrate/20181013005024_remove_koding_from_application_settings.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class RemoveKodingFromApplicationSettings < ActiveRecord::Migration +class RemoveKodingFromApplicationSettings < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20181014121030_enqueue_redact_links.rb b/db/post_migrate/20181014121030_enqueue_redact_links.rb index 1ee4703c88a..8d1a840d594 100644 --- a/db/post_migrate/20181014121030_enqueue_redact_links.rb +++ b/db/post_migrate/20181014121030_enqueue_redact_links.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class EnqueueRedactLinks < ActiveRecord::Migration +class EnqueueRedactLinks < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20181022173835_enqueue_populate_cluster_kubernetes_namespace.rb b/db/post_migrate/20181022173835_enqueue_populate_cluster_kubernetes_namespace.rb index f80a2aa6eac..94a4574abff 100644 --- a/db/post_migrate/20181022173835_enqueue_populate_cluster_kubernetes_namespace.rb +++ b/db/post_migrate/20181022173835_enqueue_populate_cluster_kubernetes_namespace.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class EnqueuePopulateClusterKubernetesNamespace < ActiveRecord::Migration +class EnqueuePopulateClusterKubernetesNamespace < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20181030135124_fill_empty_finished_at_in_deployments.rb b/db/post_migrate/20181030135124_fill_empty_finished_at_in_deployments.rb index 32b271c472a..228841a14a0 100644 --- a/db/post_migrate/20181030135124_fill_empty_finished_at_in_deployments.rb +++ b/db/post_migrate/20181030135124_fill_empty_finished_at_in_deployments.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class FillEmptyFinishedAtInDeployments < ActiveRecord::Migration +class FillEmptyFinishedAtInDeployments < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20181105201455_steal_fill_store_upload.rb b/db/post_migrate/20181105201455_steal_fill_store_upload.rb index 982001fedbe..a31a4eab472 100644 --- a/db/post_migrate/20181105201455_steal_fill_store_upload.rb +++ b/db/post_migrate/20181105201455_steal_fill_store_upload.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class StealFillStoreUpload < ActiveRecord::Migration +class StealFillStoreUpload < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false diff --git a/db/post_migrate/20181107054254_remove_restricted_todos_again.rb b/db/post_migrate/20181107054254_remove_restricted_todos_again.rb index 644e0074c46..bbeb4e8a1de 100644 --- a/db/post_migrate/20181107054254_remove_restricted_todos_again.rb +++ b/db/post_migrate/20181107054254_remove_restricted_todos_again.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # rescheduling of the revised RemoveRestrictedTodosWithCte background migration -class RemoveRestrictedTodosAgain < ActiveRecord::Migration +class RemoveRestrictedTodosAgain < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false |