diff --git a/db/migrate/20221018050323_add_objective_and_keyresult_to_work_item_types.rb b/db/migrate/20221018050323_add_objective_and_keyresult_to_work_item_types.rb index 51834a3b19b4800bccbe2aa3804953613c70a201..d071c0484a77c88e97c9f67ebf6fdd7f9bcb56e6 100644 --- a/db/migrate/20221018050323_add_objective_and_keyresult_to_work_item_types.rb +++ b/db/migrate/20221018050323_add_objective_and_keyresult_to_work_item_types.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class AddObjectiveAndKeyresultToWorkItemTypes < Gitlab::Database::Migration[2.0] # Added the following statements as per https://docs.gitlab.com/ee/development/database/migrations_for_multiple_databases.html disable_ddl_transaction! diff --git a/db/migrate/20230426102200_fix_import_sources_on_application_settings_after_phabricator_removal.rb b/db/migrate/20230426102200_fix_import_sources_on_application_settings_after_phabricator_removal.rb index e2061138fc4e83cd586643a04b9c74d4d6129615..ca56d4ac264cad0919d150be7926173a29674bfb 100644 --- a/db/migrate/20230426102200_fix_import_sources_on_application_settings_after_phabricator_removal.rb +++ b/db/migrate/20230426102200_fix_import_sources_on_application_settings_after_phabricator_removal.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class FixImportSourcesOnApplicationSettingsAfterPhabricatorRemoval < Gitlab::Database::Migration[2.1] disable_ddl_transaction! diff --git a/db/migrate/20230426161259_add_user_foreign_key_to_merge_request_diff_llm_summary.rb b/db/migrate/20230426161259_add_user_foreign_key_to_merge_request_diff_llm_summary.rb index d5692b4d95653b8e8adc884b0ec9abc701931225..64277833c76c700d674f6926abfd9e172c02fd62 100644 --- a/db/migrate/20230426161259_add_user_foreign_key_to_merge_request_diff_llm_summary.rb +++ b/db/migrate/20230426161259_add_user_foreign_key_to_merge_request_diff_llm_summary.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class AddUserForeignKeyToMergeRequestDiffLlmSummary < Gitlab::Database::Migration[2.1] disable_ddl_transaction! diff --git a/db/migrate/20230426161341_add_merge_request_diff_foreign_key_to_merge_request_diff_llm_summary.rb b/db/migrate/20230426161341_add_merge_request_diff_foreign_key_to_merge_request_diff_llm_summary.rb index 4271bd3c07c8e04d7d573704f9922a4252230000..c589717f0a2efdd1e141929497f2f4926b8f6111 100644 --- a/db/migrate/20230426161341_add_merge_request_diff_foreign_key_to_merge_request_diff_llm_summary.rb +++ b/db/migrate/20230426161341_add_merge_request_diff_foreign_key_to_merge_request_diff_llm_summary.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class AddMergeRequestDiffForeignKeyToMergeRequestDiffLlmSummary < Gitlab::Database::Migration[2.1] disable_ddl_transaction! diff --git a/db/migrate/20230626065725_backfill_instance_audit_event_name.rb b/db/migrate/20230626065725_backfill_instance_audit_event_name.rb index 082a57fcc99b5bd2b5efbcea560eca7dab50416f..ac3c617d26127d9a0da5b37986495996cdb071fe 100644 --- a/db/migrate/20230626065725_backfill_instance_audit_event_name.rb +++ b/db/migrate/20230626065725_backfill_instance_audit_event_name.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class BackfillInstanceAuditEventName < Gitlab::Database::Migration[2.1] disable_ddl_transaction! diff --git a/db/migrate/20231103162825_add_wolfi_purl_type_to_package_metadata_purl_types.rb b/db/migrate/20231103162825_add_wolfi_purl_type_to_package_metadata_purl_types.rb index bdbe8aa3a637beddc49e169c572a1edb222068de..f2298703d11803519a6809b0828efa8d3e823af4 100644 --- a/db/migrate/20231103162825_add_wolfi_purl_type_to_package_metadata_purl_types.rb +++ b/db/migrate/20231103162825_add_wolfi_purl_type_to_package_metadata_purl_types.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class AddWolfiPurlTypeToPackageMetadataPurlTypes < Gitlab::Database::Migration[2.2] milestone '16.6' diff --git a/db/post_migrate/20221103073328_change_member_namespace_id_not_null.rb b/db/post_migrate/20221103073328_change_member_namespace_id_not_null.rb index 19f6732d29771b678023a9ea3ad17ca7ce0fce50..ef493e12f38d495f3f6bfe21dc8e5777ca5de110 100644 --- a/db/post_migrate/20221103073328_change_member_namespace_id_not_null.rb +++ b/db/post_migrate/20221103073328_change_member_namespace_id_not_null.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class ChangeMemberNamespaceIdNotNull < Gitlab::Database::Migration[2.0] disable_ddl_transaction! diff --git a/db/post_migrate/20230113003255_remove_atlassian_refresh_token_constraint.rb b/db/post_migrate/20230113003255_remove_atlassian_refresh_token_constraint.rb index 81c3f10c0f6ee21dbb453f4d0c6fddefe0fb6b02..7929d4495c004351cfcdb8da3d249e56c221321f 100644 --- a/db/post_migrate/20230113003255_remove_atlassian_refresh_token_constraint.rb +++ b/db/post_migrate/20230113003255_remove_atlassian_refresh_token_constraint.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class RemoveAtlassianRefreshTokenConstraint < Gitlab::Database::Migration[2.1] CONSTRAINT_NAME = 'atlassian_identities_refresh_token_length_constraint' diff --git a/db/post_migrate/20230113201308_backfill_namespace_ldap_settings.rb b/db/post_migrate/20230113201308_backfill_namespace_ldap_settings.rb index 19020fecad5536ea662c0edc4da6a4fd1c49eab0..28a600c459f8483320f1ab9d1f9ef01e0aed3d04 100644 --- a/db/post_migrate/20230113201308_backfill_namespace_ldap_settings.rb +++ b/db/post_migrate/20230113201308_backfill_namespace_ldap_settings.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class BackfillNamespaceLdapSettings < Gitlab::Database::Migration[2.1] restrict_gitlab_migration gitlab_schema: :gitlab_main disable_ddl_transaction! diff --git a/db/post_migrate/20230124104310_prepare_web_hook_logs_id_created_at_async_index.rb b/db/post_migrate/20230124104310_prepare_web_hook_logs_id_created_at_async_index.rb index ea087265c905476020b28f28da90a364ad87e907..d22fda092d3719869f4ddc1690a3d37a7a54575b 100644 --- a/db/post_migrate/20230124104310_prepare_web_hook_logs_id_created_at_async_index.rb +++ b/db/post_migrate/20230124104310_prepare_web_hook_logs_id_created_at_async_index.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class PrepareWebHookLogsIdCreatedAtAsyncIndex < Gitlab::Database::Migration[2.1] include Gitlab::Database::PartitioningMigrationHelpers diff --git a/db/post_migrate/20230315161408_finalize_set_notifications_bigint_conversion_backfill.rb b/db/post_migrate/20230315161408_finalize_set_notifications_bigint_conversion_backfill.rb index d4a6d86d9cb5f7c48deeb1664d45fa0102ee597f..2f83fc15672a600a17bc36df466782f1ad6a6bdc 100644 --- a/db/post_migrate/20230315161408_finalize_set_notifications_bigint_conversion_backfill.rb +++ b/db/post_migrate/20230315161408_finalize_set_notifications_bigint_conversion_backfill.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class FinalizeSetNotificationsBigintConversionBackfill < Gitlab::Database::Migration[2.1] include Gitlab::Database::MigrationHelpers::ConvertToBigint restrict_gitlab_migration gitlab_schema: :gitlab_main diff --git a/db/post_migrate/20230328184031_swap_sent_notifications_id_columns.rb b/db/post_migrate/20230328184031_swap_sent_notifications_id_columns.rb index a2a0751c38a922c1f53fe2310cbcb8c4bf6123f3..b6215565b504cd1dd047292be479c2f0a08b5af0 100644 --- a/db/post_migrate/20230328184031_swap_sent_notifications_id_columns.rb +++ b/db/post_migrate/20230328184031_swap_sent_notifications_id_columns.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class SwapSentNotificationsIdColumns < Gitlab::Database::Migration[2.1] include Gitlab::Database::MigrationHelpers::ConvertToBigint diff --git a/db/post_migrate/20230404061832_drop_sync_index_ci_job_artifacts_on_expire_at_for_removal.rb b/db/post_migrate/20230404061832_drop_sync_index_ci_job_artifacts_on_expire_at_for_removal.rb index efa0792c4572385a400bf9d21633ed4e59ad0dd4..491ec0c02d5240ba2b1eb9f240fbb504d54055b5 100644 --- a/db/post_migrate/20230404061832_drop_sync_index_ci_job_artifacts_on_expire_at_for_removal.rb +++ b/db/post_migrate/20230404061832_drop_sync_index_ci_job_artifacts_on_expire_at_for_removal.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropSyncIndexCiJobArtifactsOnExpireAtForRemoval < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_ci_job_artifacts_on_expire_at_for_removal' CONDITIONS = 'locked = 0 AND expire_at IS NOT NULL' diff --git a/db/post_migrate/20230420065656_finalize_fix_incoherent_packages_size_on_project_statistics.rb b/db/post_migrate/20230420065656_finalize_fix_incoherent_packages_size_on_project_statistics.rb index aa03310eb0a212733220c413c7aa4e198ce6e0f2..8932c52d4451060cf0d9774f9c890efe8955c403 100644 --- a/db/post_migrate/20230420065656_finalize_fix_incoherent_packages_size_on_project_statistics.rb +++ b/db/post_migrate/20230420065656_finalize_fix_incoherent_packages_size_on_project_statistics.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class FinalizeFixIncoherentPackagesSizeOnProjectStatistics < Gitlab::Database::Migration[2.1] MIGRATION = 'FixIncoherentPackagesSizeOnProjectStatistics' disable_ddl_transaction! diff --git a/db/post_migrate/20230427194552_drop_cycle_analytics_unused_tables.rb b/db/post_migrate/20230427194552_drop_cycle_analytics_unused_tables.rb index 7c10238a1bc32c0c4298e25e5d5f0f8bcedc289d..be3f80389b063dbdb353cf250bb0adea61ac01f5 100644 --- a/db/post_migrate/20230427194552_drop_cycle_analytics_unused_tables.rb +++ b/db/post_migrate/20230427194552_drop_cycle_analytics_unused_tables.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropCycleAnalyticsUnusedTables < Gitlab::Database::Migration[2.1] disable_ddl_transaction! diff --git a/db/post_migrate/20230501094322_prepare_removal_partial_index_deployments_for_project_id_and_tag.rb b/db/post_migrate/20230501094322_prepare_removal_partial_index_deployments_for_project_id_and_tag.rb index bbdfb89bb80cae56f0e13c24eb78bf833d2963a9..1c0edcd5c4424af939fc345c9e560d6e2d0e26f9 100644 --- a/db/post_migrate/20230501094322_prepare_removal_partial_index_deployments_for_project_id_and_tag.rb +++ b/db/post_migrate/20230501094322_prepare_removal_partial_index_deployments_for_project_id_and_tag.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class PrepareRemovalPartialIndexDeploymentsForProjectIdAndTag < Gitlab::Database::Migration[2.1] INDEX_NAME = 'partial_index_deployments_for_project_id_and_tag' diff --git a/db/post_migrate/20230501180958_drop_clusters_applications_cert_managers.rb b/db/post_migrate/20230501180958_drop_clusters_applications_cert_managers.rb index 3eb5fc13a2a216bbeebd7683c5c5aa035f74bcaa..0d60a816c025feb5f8326dbc89b230372db678aa 100644 --- a/db/post_migrate/20230501180958_drop_clusters_applications_cert_managers.rb +++ b/db/post_migrate/20230501180958_drop_clusters_applications_cert_managers.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropClustersApplicationsCertManagers < Gitlab::Database::Migration[2.1] def up drop_table :clusters_applications_cert_managers diff --git a/db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb b/db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb index 2c7b7d89bf5fc20a4eb8eec8fa7271f23271bc1d..e7755c940a5af0d7e41d2f606667cc6ea0451d0f 100644 --- a/db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb +++ b/db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropClustersApplicationsCilium < Gitlab::Database::Migration[2.1] def up drop_table :clusters_applications_cilium diff --git a/db/post_migrate/20230502182754_drop_clusters_applications_crossplane.rb b/db/post_migrate/20230502182754_drop_clusters_applications_crossplane.rb index 1eeb7770c82a51ae2974d7c5b14339fc620ae4b6..9262f7d99559466851b6a8b8f7d4f681b4ae5965 100644 --- a/db/post_migrate/20230502182754_drop_clusters_applications_crossplane.rb +++ b/db/post_migrate/20230502182754_drop_clusters_applications_crossplane.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropClustersApplicationsCrossplane < Gitlab::Database::Migration[2.1] def up drop_table :clusters_applications_crossplane diff --git a/db/post_migrate/20230502193525_drop_clusters_applications_helm.rb b/db/post_migrate/20230502193525_drop_clusters_applications_helm.rb index c435b356e010270cdbd4bd32692b0579a09232a2..2efa53e5b312343bd569edaf195b1b3e919c4ae8 100644 --- a/db/post_migrate/20230502193525_drop_clusters_applications_helm.rb +++ b/db/post_migrate/20230502193525_drop_clusters_applications_helm.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropClustersApplicationsHelm < Gitlab::Database::Migration[2.1] def up drop_table :clusters_applications_helm diff --git a/db/post_migrate/20230502201251_drop_clusters_applications_ingress.rb b/db/post_migrate/20230502201251_drop_clusters_applications_ingress.rb index 3ccc536cb7e7719034e6edd4e51c9ec7dedd1f15..409c9c49b1cdcbaa2c7c0b95a44a863c24d1c77f 100644 --- a/db/post_migrate/20230502201251_drop_clusters_applications_ingress.rb +++ b/db/post_migrate/20230502201251_drop_clusters_applications_ingress.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropClustersApplicationsIngress < Gitlab::Database::Migration[2.1] def up drop_table :clusters_applications_ingress diff --git a/db/post_migrate/20230503115918_drop_clusters_applications_jupyter.rb b/db/post_migrate/20230503115918_drop_clusters_applications_jupyter.rb index bd98aa6d19ca802c3e0b331a0087b9d10b0031a7..35bddba301adc856a5c03fb679844704353fecb1 100644 --- a/db/post_migrate/20230503115918_drop_clusters_applications_jupyter.rb +++ b/db/post_migrate/20230503115918_drop_clusters_applications_jupyter.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropClustersApplicationsJupyter < Gitlab::Database::Migration[2.1] def up drop_table :clusters_applications_jupyter diff --git a/db/post_migrate/20230503152349_drop_clusters_applications_knative.rb b/db/post_migrate/20230503152349_drop_clusters_applications_knative.rb index e8473b7440851bf00e778d63f2be3eb2089ced65..38f28eca109a9ca7d61c9aeb5046533909b03e95 100644 --- a/db/post_migrate/20230503152349_drop_clusters_applications_knative.rb +++ b/db/post_migrate/20230503152349_drop_clusters_applications_knative.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropClustersApplicationsKnative < Gitlab::Database::Migration[2.1] def up drop_table :clusters_applications_knative diff --git a/db/post_migrate/20230503173101_drop_clusters_applications_prometheus.rb b/db/post_migrate/20230503173101_drop_clusters_applications_prometheus.rb index b62452f2052e77df38e544af53e5670b9ea4f462..35db7cbed47524c57196d140d3869f479f42f8d4 100644 --- a/db/post_migrate/20230503173101_drop_clusters_applications_prometheus.rb +++ b/db/post_migrate/20230503173101_drop_clusters_applications_prometheus.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropClustersApplicationsPrometheus < Gitlab::Database::Migration[2.1] def up drop_table :clusters_applications_prometheus diff --git a/db/post_migrate/20230503175406_drop_clusters_applications_runners.rb b/db/post_migrate/20230503175406_drop_clusters_applications_runners.rb index a4ab75dbce5afae9948e6e5aef41a818faffe230..fb177b5a1de9eee4923ca6b588e441a360751e84 100644 --- a/db/post_migrate/20230503175406_drop_clusters_applications_runners.rb +++ b/db/post_migrate/20230503175406_drop_clusters_applications_runners.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropClustersApplicationsRunners < Gitlab::Database::Migration[2.1] def up drop_table :clusters_applications_runners diff --git a/db/post_migrate/20230503181808_drop_serverless_domain_cluster.rb b/db/post_migrate/20230503181808_drop_serverless_domain_cluster.rb index 003f2d91b549e765d2966423590cc1a556031fd3..b68b7e8528577453b79ac813ae4ef8bd6609079e 100644 --- a/db/post_migrate/20230503181808_drop_serverless_domain_cluster.rb +++ b/db/post_migrate/20230503181808_drop_serverless_domain_cluster.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropServerlessDomainCluster < Gitlab::Database::Migration[2.1] def up drop_table :serverless_domain_cluster diff --git a/db/post_migrate/20230515153600_finalize_back_fill_prepared_at_merge_requests.rb b/db/post_migrate/20230515153600_finalize_back_fill_prepared_at_merge_requests.rb index 6c0e4e722d29264244d802d08cc5f50e4c4d7ba5..2b5d742445029aa03b6ff770d179e44d2d8f7b48 100644 --- a/db/post_migrate/20230515153600_finalize_back_fill_prepared_at_merge_requests.rb +++ b/db/post_migrate/20230515153600_finalize_back_fill_prepared_at_merge_requests.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class FinalizeBackFillPreparedAtMergeRequests < Gitlab::Database::Migration[2.1] disable_ddl_transaction! diff --git a/db/post_migrate/20230605192000_drop_tmp_index_oauth_access_tokens_on_id_where_expires_in_null.rb b/db/post_migrate/20230605192000_drop_tmp_index_oauth_access_tokens_on_id_where_expires_in_null.rb index c74df0a5cdd2e0c73f33c7770455ae41d922718c..b82c2dfb8ed75c2f78f70a0c563fcd87d4ca491c 100644 --- a/db/post_migrate/20230605192000_drop_tmp_index_oauth_access_tokens_on_id_where_expires_in_null.rb +++ b/db/post_migrate/20230605192000_drop_tmp_index_oauth_access_tokens_on_id_where_expires_in_null.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropTmpIndexOauthAccessTokensOnIdWhereExpiresInNull < Gitlab::Database::Migration[2.1] TMP_INDEX = 'tmp_index_oauth_access_tokens_on_id_where_expires_in_null' diff --git a/db/post_migrate/20230615030402_remove_audit_events_group_index.rb b/db/post_migrate/20230615030402_remove_audit_events_group_index.rb index 9a77d7a4d0dd16b07a84e734b52cb7aa7263fecc..ff75a04b0f40c577a5507ed45d850e9b846dcad1 100644 --- a/db/post_migrate/20230615030402_remove_audit_events_group_index.rb +++ b/db/post_migrate/20230615030402_remove_audit_events_group_index.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class RemoveAuditEventsGroupIndex < Gitlab::Database::Migration[2.1] include Gitlab::Database::PartitioningMigrationHelpers diff --git a/db/post_migrate/20230704042302_prepare_removal_index_deployments_on_project_id_sha.rb b/db/post_migrate/20230704042302_prepare_removal_index_deployments_on_project_id_sha.rb index 77ddd909215a13315765bf051691508196d93e44..3ab42c70d8aa4be45f6d153d1e1b8198107b00cc 100644 --- a/db/post_migrate/20230704042302_prepare_removal_index_deployments_on_project_id_sha.rb +++ b/db/post_migrate/20230704042302_prepare_removal_index_deployments_on_project_id_sha.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class PrepareRemovalIndexDeploymentsOnProjectIdSha < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_deployments_on_project_id_sha' diff --git a/db/post_migrate/20230704044541_prepare_removal_index_deployments_on_project_id_and_status.rb b/db/post_migrate/20230704044541_prepare_removal_index_deployments_on_project_id_and_status.rb index 0c9a292eb8c44c17dd9935da6c87d123e868bfdd..0098eaabf76e6ce6bcaf1f1575afc9c04300cd5d 100644 --- a/db/post_migrate/20230704044541_prepare_removal_index_deployments_on_project_id_and_status.rb +++ b/db/post_migrate/20230704044541_prepare_removal_index_deployments_on_project_id_and_status.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class PrepareRemovalIndexDeploymentsOnProjectIdAndStatus < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_deployments_on_project_id_and_status' diff --git a/db/post_migrate/20230704050739_prepare_removal_index_deployments_on_environment_id_and_iid_and_project_id.rb b/db/post_migrate/20230704050739_prepare_removal_index_deployments_on_environment_id_and_iid_and_project_id.rb index 6171b58ac5364388ebc7c41f55638052cf438e09..204579d6e1872889fb6ab205cb178a070d4cbbd2 100644 --- a/db/post_migrate/20230704050739_prepare_removal_index_deployments_on_environment_id_and_iid_and_project_id.rb +++ b/db/post_migrate/20230704050739_prepare_removal_index_deployments_on_environment_id_and_iid_and_project_id.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class PrepareRemovalIndexDeploymentsOnEnvironmentIdAndIidAndProjectId < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_deployments_on_environment_id_and_iid_and_project_id' diff --git a/db/post_migrate/20230712052619_drop_index_deployments_on_project_id_and_status.rb b/db/post_migrate/20230712052619_drop_index_deployments_on_project_id_and_status.rb index 0c76b73dcdcf34e30068092d32d17e607243c103..5dea67a5d1622f2af02bbda370fab2da51e2d5a3 100644 --- a/db/post_migrate/20230712052619_drop_index_deployments_on_project_id_and_status.rb +++ b/db/post_migrate/20230712052619_drop_index_deployments_on_project_id_and_status.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropIndexDeploymentsOnProjectIdAndStatus < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_deployments_on_project_id_and_status' diff --git a/db/post_migrate/20230712054057_drop_index_deployments_on_project_id_sha.rb b/db/post_migrate/20230712054057_drop_index_deployments_on_project_id_sha.rb index 9916ee7f9bac41b9461bfa97b1eff9d2ddd59e9a..edb0ee98d4300264688276b5d2cf22a64f97e657 100644 --- a/db/post_migrate/20230712054057_drop_index_deployments_on_project_id_sha.rb +++ b/db/post_migrate/20230712054057_drop_index_deployments_on_project_id_sha.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropIndexDeploymentsOnProjectIdSha < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_deployments_on_project_id_sha' diff --git a/db/post_migrate/20230712055956_drop_index_deployments_on_environment_id_and_iid_and_project_id.rb b/db/post_migrate/20230712055956_drop_index_deployments_on_environment_id_and_iid_and_project_id.rb index 52a02e68d147d5bf50dde92464b66d4488dbaf36..4791baf9d9efc06efa00b0304d6cf176577f5d6c 100644 --- a/db/post_migrate/20230712055956_drop_index_deployments_on_environment_id_and_iid_and_project_id.rb +++ b/db/post_migrate/20230712055956_drop_index_deployments_on_environment_id_and_iid_and_project_id.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropIndexDeploymentsOnEnvironmentIdAndIidAndProjectId < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_deployments_on_environment_id_and_iid_and_project_id' diff --git a/db/post_migrate/20230717062445_backfill_ci_stages_pipeline_id_conversion.rb b/db/post_migrate/20230717062445_backfill_ci_stages_pipeline_id_conversion.rb index d93517fb49b01144d612e04d6a17e8e937f80531..c0a5c577403a44fbb18d630d404de338403f78ed 100644 --- a/db/post_migrate/20230717062445_backfill_ci_stages_pipeline_id_conversion.rb +++ b/db/post_migrate/20230717062445_backfill_ci_stages_pipeline_id_conversion.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class BackfillCiStagesPipelineIdConversion < Gitlab::Database::Migration[2.1] restrict_gitlab_migration gitlab_schema: :gitlab_ci diff --git a/db/post_migrate/20230724150939_index_projects_on_namespace_id_and_repository_size_limit.rb b/db/post_migrate/20230724150939_index_projects_on_namespace_id_and_repository_size_limit.rb index fd2387e2bc46666a3cffa17d55a1d3a15244536f..2a60e9480073f56f3b8cdcdc5b784625c0d28131 100644 --- a/db/post_migrate/20230724150939_index_projects_on_namespace_id_and_repository_size_limit.rb +++ b/db/post_migrate/20230724150939_index_projects_on_namespace_id_and_repository_size_limit.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class IndexProjectsOnNamespaceIdAndRepositorySizeLimit < Gitlab::Database::Migration[2.1] INDEX_NAME = "index_projects_on_namespace_id_and_repository_size_limit" diff --git a/db/post_migrate/20230726080827_add_issue_search_data_namespace_id_foreign_key.rb b/db/post_migrate/20230726080827_add_issue_search_data_namespace_id_foreign_key.rb index 43b4db7d9b565d1a166d0c14faabb3d8b9f67be6..b598696721404718f232e4a4311f651e5b1fecbe 100644 --- a/db/post_migrate/20230726080827_add_issue_search_data_namespace_id_foreign_key.rb +++ b/db/post_migrate/20230726080827_add_issue_search_data_namespace_id_foreign_key.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class AddIssueSearchDataNamespaceIdForeignKey < Gitlab::Database::Migration[2.1] include Gitlab::Database::PartitioningMigrationHelpers diff --git a/db/post_migrate/20230818034041_prepare_removal_index_success_deployments_on_cluster_id_and_environment_id.rb b/db/post_migrate/20230818034041_prepare_removal_index_success_deployments_on_cluster_id_and_environment_id.rb index 39a457746768be9b9776e7a74446fbee047d5b84..db40584bb3ac857946adcfe6819aa1541fa05ae4 100644 --- a/db/post_migrate/20230818034041_prepare_removal_index_success_deployments_on_cluster_id_and_environment_id.rb +++ b/db/post_migrate/20230818034041_prepare_removal_index_success_deployments_on_cluster_id_and_environment_id.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class PrepareRemovalIndexSuccessDeploymentsOnClusterIdAndEnvironmentId < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_successful_deployments_on_cluster_id_and_environment_id' diff --git a/db/post_migrate/20230906181457_add_index_to_violations_on_target_proj_id.rb b/db/post_migrate/20230906181457_add_index_to_violations_on_target_proj_id.rb index 13c76a3c2de616460a076809276f5761a68f533c..a51fbd0a00a996d61ba2eff5004b5000ee595a5b 100644 --- a/db/post_migrate/20230906181457_add_index_to_violations_on_target_proj_id.rb +++ b/db/post_migrate/20230906181457_add_index_to_violations_on_target_proj_id.rb @@ -2,7 +2,7 @@ class AddIndexToViolationsOnTargetProjId < Gitlab::Database::Migration[2.1] TABLE_NAME = 'merge_requests_compliance_violations' - # Use funciton based naming as suggested in docs: + # Use function based naming as suggested in docs: # https://docs.gitlab.com/ee/development/migration_style_guide.html#truncate-long-index-names INDEX_NAME = 'i_compliance_violations_for_export' diff --git a/db/post_migrate/20230929095008_drop_application_settings_product_analytics_cluster_settings.rb b/db/post_migrate/20230929095008_drop_application_settings_product_analytics_cluster_settings.rb index b759ee2191252859ab6c9f5dc4280df9cc46a515..d8a7f0017fab9823891a846a8918101f7fcea41f 100644 --- a/db/post_migrate/20230929095008_drop_application_settings_product_analytics_cluster_settings.rb +++ b/db/post_migrate/20230929095008_drop_application_settings_product_analytics_cluster_settings.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropApplicationSettingsProductAnalyticsClusterSettings < Gitlab::Database::Migration[2.1] disable_ddl_transaction! diff --git a/db/post_migrate/20230929095728_drop_project_settings_product_analytics_cluster_settings.rb b/db/post_migrate/20230929095728_drop_project_settings_product_analytics_cluster_settings.rb index e6f0c29fb7a2209b0c5f9165323f4becef676005..d8054a34a4b71cb5c43b2c2609939ed139e9137e 100644 --- a/db/post_migrate/20230929095728_drop_project_settings_product_analytics_cluster_settings.rb +++ b/db/post_migrate/20230929095728_drop_project_settings_product_analytics_cluster_settings.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class DropProjectSettingsProductAnalyticsClusterSettings < Gitlab::Database::Migration[2.1] disable_ddl_transaction! diff --git a/db/post_migrate/20231012180342_index_stopping_environments_on_updated_at.rb b/db/post_migrate/20231012180342_index_stopping_environments_on_updated_at.rb index 3b9332ab0f820cd565aa8fa0c2c7a079999a92b7..cca6ed23fefafea8173dea0568ffcc383f29d928 100644 --- a/db/post_migrate/20231012180342_index_stopping_environments_on_updated_at.rb +++ b/db/post_migrate/20231012180342_index_stopping_environments_on_updated_at.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class IndexStoppingEnvironmentsOnUpdatedAt < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_environments_on_updated_at_for_stopping_state' diff --git a/db/post_migrate/20231023113908_add_index_stopping_environments_on_updated_at.rb b/db/post_migrate/20231023113908_add_index_stopping_environments_on_updated_at.rb index 01fe32d6bd7324f19fbaab40e23950670c1362dd..5df8625c24c4e0b25a53023a351816c40fdc8bb5 100644 --- a/db/post_migrate/20231023113908_add_index_stopping_environments_on_updated_at.rb +++ b/db/post_migrate/20231023113908_add_index_stopping_environments_on_updated_at.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -# See https://docs.gitlab.com/ee/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - class AddIndexStoppingEnvironmentsOnUpdatedAt < Gitlab::Database::Migration[2.1] INDEX_NAME = 'index_environments_on_updated_at_for_stopping_state'