Skip to content

Clear all connections just before db:test:purge

Thong Kuah requested to merge clear_all_connections_before_db_purge into master

What does this MR do and why?

For some reason connections are obtained during db:test:prepare, specifically with config/initializers/1_postgresql_only.rb, and config/initializers/postgres_partitioning.rb, and not released when we come to the step where we purge the test db. Hence we force all connections to be released first.

To reproduce:

  1. Configure multiple databases following https://docs.gitlab.com/ee/development/database/multiple_databases.html#development-setup

  2. Configure fully decomposed with:

    export GITLAB_USE_MODEL_LOAD_BALANCING=true
  3. Create a migration:

    $ bundle exec rails g migration test_something
    $ bundle exec rails db:migrate
    
    # Creating, migrating migrations is quite tedious so an equivalent alternative is to hack the sha1 state
    # to make Rails think the test database needs an update:
    $ gdk psql
    
    gitlabhq_development=# \c gitlabhq_test_ci
    You are now connected to database "gitlabhq_test_ci" as user "tkuah".
    gitlabhq_test_ci=# update ar_internal_metadata set value='b2bd60d4ac18901d8590264fe8cd4ceac1142fb9' where key = 'schema_sha1';
    UPDATE 1
  4. Run a spec

    bin/rspec spec/models/ci/instance_variable_spec.rb 

On master we will see the following error:

Error
$ bin/rspec spec/models/ci/instance_variable_spec.rb 
rails aborted!
ActiveRecord::StatementInvalid: PG::ObjectInUse: ERROR:  database "gitlabhq_test_ci" is being accessed by other users
DETAIL:  There is 1 other session using the database.
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:95:in `method_missing'

Caused by:
PG::ObjectInUse: ERROR:  database "gitlabhq_test_ci" is being accessed by other users
DETAIL:  There is 1 other session using the database.
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
/Users/tkuah/code/gdk-ee/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:95:in `method_missing'
Tasks: TOP => db:test:load => db:test:purge
(See full trace by running task with --trace)

An error occurred while loading ./spec/models/ci/instance_variable_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

ActiveRecord::PendingMigrationError:


  Migrations are pending. To resolve this issue, run:

          bin/rails db:migrate RAILS_ENV=test

  You have 1101 pending migrations:

  20210301200959_init_schema.rb
  20210302025305_add_excluded_urls_and_request_headers_to_dast_site_profiles.rb
  20210302074524_backfill_namespace_statistics_with_wiki_size.rb
  20210302103851_add_deployed_deployment_id_index_to_project_pages_metadata.rb
  20210302150310_schedule_migrate_pages_to_zip_storage.rb
  20210302155904_remove_index_for_security_orchestration_policy.rb
  20210302160544_add_index_to_security_orchestration_policy.rb
  20210302212623_rename_vuln_fingerprints_indexes.rb
  20210303053341_add_last_edited_at_and_last_edited_by_id_to_notes.rb
  20210303064112_add_not_null_constraints_to_gitlab_subscriptions_namespace_id.rb
  20210303064142_cleanup_gitlab_subscriptions_with_null_namespace_id.rb
  20210303091651_add_index_to_environments_tier.rb
  20210303121224_update_gitlab_subscriptions_start_at_post_eoa.rb
  20210303165201_add_index_for_succeeded_deployments.rb
  20210303165301_add_not_null_constraint_to_cluster_token_name.rb
  20210303165302_cleanup_cluster_tokens_with_null_name.rb
  20210303193544_add_concurrent_fields_to_bulk_imports_trackers.rb
  20210303193605_add_text_limits_to_bulk_imports_trackers_jid_and_pipeline_name.rb
  20210304133508_schedule_remove_duplicate_vulnerabilities_findings2.rb
  20210305002016_update_terraform_states_locked_by_user_id_foreign_key.rb
  20210305013509_add_text_limit_to_group_ci_variables_environment_scope.rb
  20210305031822_create_dast_site_profile_variables.rb
  20210305145622_add_terraform_module_max_file_size_to_plan_limits.rb
  20210305180331_create_ci_unit_tests.rb
  20210305182740_add_projects_fk_to_ci_unit_tests.rb
  20210305182855_create_ci_unit_test_failures.rb
  20210305183904_add_ci_builds_fk_to_ci_unit_test_failures.rb
  20210306121300_partition_web_hook_logs.rb
  20210306121310_backfill_partitioned_web_hook_logs.rb
  20210308125742_add_info_column_into_security_scans_table.rb
  20210308175224_change_namespace_settings_delayed_project_removal_null.rb
  20210308175225_add_lock_delayed_project_removal_to_namespace_settings.rb
  20210308175226_add_delayed_project_removal_to_application_settings.rb
  20210308175227_add_lock_delayed_project_removal_to_application_settings.rb
  20210308190413_change_batched_background_migrations_batch_class_name_default.rb
  20210309160106_add_admin_mode_to_application_setting.rb
  20210309181019_add_last_used_at_to_cluster_agent_token.rb
  20210310000627_add_idx_vulnerability_occurrences_dedup.rb
  20210310111009_add_settings_to_group_merge_request_approval_settings.rb
  20210311022012_add_text_limits_to_dast_site_profiles.rb
  20210311045138_set_traversal_ids_for_gitlab_org_group_staging.rb
  20210311045139_set_traversal_ids_for_gitlab_org_group_com.rb
  20210311093723_add_partial_index_on_ci_pipelines_by_cancelable_status_and_users.rb
  20210311120152_add_metrics_to_batched_background_migration_jobs.rb
  20210311120153_initialize_conversion_of_events_id_to_bigint.rb
  20210311120154_initialize_conversion_of_push_event_payloads_event_id_to_bigint.rb
  20210311120155_backfill_events_id_for_bigint_conversion.rb
  20210311120156_backfill_push_event_payload_event_id_for_bigint_conversion.rb
  20210312140029_add_owner_and_id_index_on_active_ci_pipeline_schedules.rb
  20210312174321_add_enforced_git_check_to_saml_provider.rb
  20210312193532_add_resource_access_token_creation_allowed_to_namespace_settings.rb
  20210313045617_add_verification_state_and_started_at_to_snippet_repositories.rb
  20210313045845_add_verification_indexes_to_snippet_repositories.rb
  20210316094047_add_trial_extension_type_to_gitlab_subscription_histories.rb
  20210316094323_add_trial_extension_type_to_gitlab_subscriptions.rb
  20210316152500_add_index_ci_stages_on_pipeline_id_and_id.rb
  20210316171009_create_packages_helm_file_metadata.rb
  20210317035357_create_dast_profiles_pipelines.rb
  20210317100520_create_elastic_index_settings.rb
  20210317104032_set_iteration_cadence_automatic_to_false.rb
  20210317104301_create_in_product_marketing_emails.rb
  20210317105904_add_user_foreign_key_to_in_product_marketing_emails.rb
  20210317123054_add_throttle_package_registry_columns.rb
  20210317155207_validate_not_null_constraint_on_cluster_token_name.rb
  20210317192943_add_expiry_notification_delivered_to_keys.rb
  20210317210338_add_valid_runner_registrars.rb
  20210318134427_delete_security_findings_without_uuid.rb
  20210319071214_add_helm_max_file_size_to_plan_limits.rb
  20210322063407_add_dast_profile_id_fk_to_dast_profiles_pipelines.rb
  20210322063450_add_ci_pipeline_id_fk_to_dast_profiles_pipelines.rb
  20210322115438_validate_not_null_constraint_on_gitlab_subscriptions_namespace_id.rb
  20210322182751_add_index_to_keys_on_expires_at_and_expiry_notification_undelivered.rb
  20210323064751_add_namespace_traversal_ids_index.rb
  20210323125809_create_status_check_responses_table.rb
  20210323130831_add_merge_request_foreign_key_to_status_check_responses.rb
  20210323131543_add_external_approval_rule_foreign_key_to_status_check_responses.rb
  20210323155010_populate_dismissal_information_for_vulnerabilities.rb
  20210323182846_add_project_status_date_index_to_merge_requests.rb
  20210324112439_add_index_mirror_data_on_retry_next_execution_where_status.rb
  20210324131727_migrate_elastic_index_settings.rb
  20210325092215_add_not_valid_foreign_key_to_group_hooks.rb
  20210325113129_validate_foreign_key_on_service_hooks.rb
  20210325150837_add_verification_state_to_ci_pipeline_artifact.rb
  20210325151758_add_verification_failure_limit_to_ci_pipeline_artifact.rb
  20210325152011_add_verification_indexes_to_ci_pipeline_artifacts.rb
  20210326035553_add_index_for_project_deployments_with_environment_id_and_updated_at.rb
  20210326121537_backfill_cleanup_for_partitioned_web_hook_logs.rb
  20210326190903_create_vulnerability_finding_evidences.rb
  20210328214434_remove_temporary_index_from_vulnerabilities_table.rb
  20210329095548_add_target_project_and_source_branch_index_to_merge_request.rb
  20210329102724_add_new_trail_plans.rb
  20210329191850_add_finding_signature_table.rb
  20210329192716_add_composite_index_to_award_emoji.rb
  20210330015805_add_cloud_to_licenses.rb
  20210330091751_remove_records_without_group_from_webhooks_table.rb
  20210330130420_drop_finding_fingerprint_table.rb
  20210331000934_add_config_to_ci_runners.rb
  20210331105335_drop_non_partitioned_audit_events.rb
  20210331125111_add_default_target_project.rb
  20210331145548_add_index_for_last_deployment.rb
  20210331180118_remove_deprecated_index_from_award_emoji.rb
  20210401131948_move_container_registry_enabled_to_project_features2.rb
  20210401134157_add_index_to_pages_deployments.rb
  20210401134455_remove_index_mirror_data_on_next_execution_and_retry_count.rb
  20210401175134_add_before_expiry_notification_delivered_to_keys.rb
  20210401192808_add_index_to_keys_on_expires_at_and_before_expiry_notification_undelivered.rb
  20210402005225_add_source_and_level_index_on_notification_settings.rb
  20210403022952_remove_notes_delete_cascade_timelogs.rb
  20210406063442_create_namespaces_id_parent_id_partial_index.rb
  20210406140057_add_total_tuple_count_to_batched_migrations.rb
  20210406144743_backfill_total_tuple_count_for_batched_migrations.rb
  20210407002511_add_type_to_dast_site_profile.rb
  20210407111027_add_whats_new_application_setting.rb
  20210407140539_add_verification_state_and_started_at_to_terraform_state_version_table.rb
  20210407150240_confirm_support_bot_user.rb
  20210409084242_create_index_on_notes_for_cherry_picked_merge_requests.rb
  20210409185501_index_members_on_user_id_source_id_source_type.rb
  20210409185531_remove_members_index_on_user_id.rb
  20210411212813_add_clusters_integrations_prometheus.rb
  20210412111213_create_security_orchestration_policy_rule_schedule.rb
  20210412132736_add_instance_url_to_jira_connect_installations.rb
  20210412132824_add_text_limit_to_jira_connect_installations_instance_url.rb
  20210412142223_add_user_index_on_spam_logs.rb
  20210412172030_add_configured_at_to_security_orchestration_policy.rb
  20210413092922_add_index_to_packages_maven_metadata_path.rb
  20210413121101_add_created_at_web_hook_id_index_to_partitioned_web_hook_log.rb
  20210413123832_add_index_on_web_hook_id_to_partitioned_web_hook_log.rb
  20210413130011_add_partitioned_web_hook_log_fk.rb
  20210413132500_reschedule_artifact_expiry_backfill_again.rb
  20210413155324_add_pause_seconds_to_batched_background_migrations.rb
  20210414045322_add_pause_seconds_to_batched_background_migration_jobs.rb
  20210414095944_add_index_services_on_project_and_type_where_inherit_null.rb
  20210414100914_add_bulk_import_exports_table.rb
  20210414130017_add_foreign_key_to_bulk_import_exports_on_project.rb
  20210414130526_add_foreign_key_to_bulk_import_exports_on_group.rb
  20210414131600_add_external_pipeline_validation_to_application_setting.rb
  20210414131807_add_bulk_import_exports_table_indexes.rb
  20210414133310_add_bulk_import_export_uploads_table.rb
  20210415074645_index_members_on_user_id_access_level_requested_at_is_null.rb
  20210415100159_initialize_conversion_of_ci_build_needs_to_bigint.rb
  20210415101228_backfill_ci_build_needs_for_bigint_conversion.rb
  20210415142700_add_url_limit_to_pipeline_validation.rb
  20210415144538_remove_index_epics_on_group_id_from_epics.rb
  20210415155043_move_container_registry_enabled_to_project_features3.rb
  20210415172516_create_vulnerability_finding_evidence_requests.rb
  20210416172516_create_vulnerability_finding_evidence_responses.rb
  20210419090412_remove_debian_group_architectures_distribution_id_index.rb
  20210419090542_remove_debian_project_architectures_distribution_id_index.rb
  20210419203017_add_remote_import_url_to_import_export_upload.rb
  20210419203018_add_remote_text_limit_to_import_url_in_import_export_upload.rb
  20210419224834_update_issues_iteration_foreign_key.rb
  20210420012444_change_web_hook_events_default.rb
  20210420012909_index_cluster_agent_tokens_on_last_used_at.rb
  20210420103955_remove_hipchat_service_records.rb
  20210420120734_initialize_conversion_of_ci_job_artifacts_to_bigint.rb
  20210420121149_backfill_conversion_of_ci_job_artifacts.rb
  20210420173030_add_verification_indexes_to_terraform_state_versions.rb
  20210420210642_recreate_index_for_project_deployments_with_environment_id_and_date_at.rb
  20210420221106_update_merge_requests_iteration_foreign_key.rb
  20210421021510_add_deactivate_dormant_users_to_application_settings.rb
  20210421022010_add_index_for_dormant_users.rb
  20210421081724_add_codeowners_devops_adoption_snapshot.rb
  20210421163509_schedule_update_jira_tracker_data_deployment_type_based_on_url.rb
  20210421190157_remove_elastic_task_null_constraint_from_elastic_reindexing_subtasks.rb
  20210422022825_initialize_conversion_of_ci_sources_pipelines_source_job_id_to_bigint.rb
  20210422023046_backfill_ci_sources_pipelines_source_job_id_for_bigint_conversion.rb
  20210422142647_add_project_id_next_run_at_index_to_container_expiration_policies.rb
  20210422181809_add_project_to_timelogs.rb
  20210422195929_create_elastic_reindexing_slices.rb
  20210423054022_create_dast_site_profiles_pipelines.rb
  20210423054537_add_dast_site_profile_id_fk_to_dast_site_profiles_pipelines.rb
  20210423054846_add_ci_pipeline_id_fk_to_dast_site_profiles_pipelines.rb
  20210423124223_remove_proxy_settings_to_jira_tracker_data.rb
  20210423155059_add_runner_registration_to_plan_limits.rb
  20210423160427_schedule_drop_invalid_vulnerabilities.rb
  20210423164702_insert_runner_registration_plan_limits.rb
  20210423171304_re_order_fk_source_project_id_in_merge_requests.rb
  20210424115725_swap_partitioned_web_hook_logs.rb
  20210424163400_add_project_id_fk_to_timelogs.rb
  20210426094524_initialize_conversion_of_ci_builds_to_bigint.rb
  20210426094549_backfill_ci_builds_for_bigint_conversion.rb
  20210426225417_schedule_recalculate_uuid_on_vulnerabilities_occurrences2.rb
  20210427045604_initialize_conversion_of_ci_build_trace_chunks_to_bigint.rb
  20210427045711_backfill_ci_build_trace_chunks_for_bigint_conversion.rb
  20210427062807_add_index_to_batched_migration_jobs_status.rb
  20210427084924_initialize_conversion_of_ci_builds_runner_session_to_bigint.rb
  20210427085020_backfill_ci_builds_runner_session_for_bigint_conversion.rb
  20210427094931_add_execution_order_index_to_batched_background_migration_jobs.rb
  20210427125400_add_spamcheck_api_key_to_application_setting.rb
  20210427194958_add_description_roll_over_to_iterations_cadences.rb
  20210427200840_add_text_limit_to_iterations_cadences_description.rb
  20210427212034_schedule_update_timelogs_project_id.rb
  20210428151144_update_invalid_web_hooks.rb
  20210428151238_validate_foreign_key_on_group_hooks.rb
  20210429024843_add_escalation_policies.rb
  20210429032320_add_escalation_rules.rb
  20210429131525_create_user_credit_card_validations.rb
  20210429143649_add_new_issues_index_for_relative_position.rb
  20210429181325_add_failure_tracking_to_web_hooks.rb
  20210429192653_add_generic_package_duplicate_settings_to_namespace_package_settings.rb
  20210429193106_add_text_limit_to_namespace_package_settings_generic_duplicate_exception_regex.rb
  20210430034712_add_alert_manager_token_to_clusters_integration_prometheus.rb
  20210430100947_add_elasticsearch_username_password_to_application_settings.rb
  20210430121522_initialize_conversion_of_ci_build_trace_sections_to_bigint.rb
  20210430121542_backfill_ci_build_trace_sections_for_bigint_conversion.rb
  20210430122951_add_snapshot_namespace_id.rb
  20210430124212_add_display_namespace_id_to_segments.rb
  20210430124630_add_devops_adoption_indexes.rb
  20210430130259_remove_obsolete_segments_field.rb
  20210430134202_copy_adoption_snapshot_namespace.rb
  20210430135954_copy_adoption_segments_namespace.rb
  20210430154631_add_slice_multiplier_and_max_slices_to_elastic_reindexing_task.rb
  20210503105022_create_project_value_streams.rb
  20210503105845_add_project_value_stream_id_to_project_stages.rb
  20210503131747_add_web_hook_calls_to_plan_limits.rb
  20210504085144_add_index_on_web_hook_project_id_recent_failures.rb
  20210504135823_add_floc_application_settings.rb
  20210504143128_add_verification_state_and_started_at_to_mr_diff_details_table.rb
  20210504153354_create_clusters_integration_elasticstack.rb
  20210504164429_create_partial_indexes_for_pending_and_running_builds.rb
  20210505070612_create_packages_debian_group_distribution_keys.rb
  20210505070812_create_packages_debian_project_distribution_keys.rb
  20210505092746_create_partial_covering_index_for_pending_builds.rb
  20210505124816_add_text_limit_to_elasticsearch_username.rb
  20210505170152_add_verification_indexes_to_merge_request_diff_details_table.rb
  20210506064413_create_namespaces_id_parent_id_inverse_partial_index.rb
  20210506065000_schedule_backfill_traversal_ids.rb
  20210506150833_create_vulnerability_finding_evidence_headers.rb
  20210507191949_add_remove_on_issue_close_to_labels.rb
  20210510083845_add_sha_to_status_check_response.rb
  20210510191551_add_body_to_findings_evidences_request.rb
  20210510191552_add_limit_to_findings_evidences_request_body.rb
  20210511095657_add_temporary_index_for_project_topics_to_taggings.rb
  20210511095658_schedule_migrate_project_taggings_context_from_tags_to_topics.rb
  20210511104929_add_epic_board_recent_visits_table.rb
  20210511104930_add_index_to_epic_board_recent_visits.rb
  20210511142748_schedule_drop_invalid_vulnerabilities2.rb
  20210511165250_add_foreign_key_to_lfs_objects_projects.rb
  20210512120122_add_pending_builds_table.rb
  20210512183309_add_body_to_findings_evidences_response.rb
  20210512183310_add_limit_to_findings_evidences_response_body.rb
  20210513093418_add_draft_column_to_merge_requests.rb
  20210513155447_add_temporary_package_index_for_nuget_data_migration.rb
  20210513155546_backfill_nuget_temporary_packages_to_processing_status.rb
  20210513155635_remove_temporary_package_index_for_nuget_data_migration.rb
  20210513163904_cleanup_move_container_registry_enabled_to_project_feature.rb
  20210514063252_schedule_cleanup_orphaned_lfs_objects_projects.rb
  20210517075444_remove_temporary_index_for_project_topics_to_taggings.rb
  20210517130723_make_snapshot_segment_id_optional.rb
  20210517144856_require_snapshot_namespace.rb
  20210517221612_add_default_value_to_merge_requests_author_approval_on_projects.rb
  20210518001450_backfill_clusters_integration_elastic_stack_enabled.rb
  20210518074332_schedule_disable_expiration_policies_linked_to_no_container_images.rb
  20210519104931_backfill_clusters_integration_prometheus_enabled.rb
  20210519132109_initialize_conversion_of_ci_builds_metadata_to_bigint.rb
  20210519132129_backfill_ci_builds_metadata_for_bigint_conversion.rb
  20210519154058_schedule_update_users_where_two_factor_auth_required_from_group.rb
  20210519220019_backfill_escalation_policies_for_oncall_schedules.rb
  20210520012430_backfill_pk_conversion_for_self_managed.rb
  20210520102039_group_protected_environments_add_column.rb
  20210520133032_initialize_conversion_of_taggings_to_bigint.rb
  20210520133440_backfill_taggings_for_bigint_conversion.rb
  20210521073920_drop_devops_adoption_namespace_uniqueness.rb
  20210525075724_clean_up_pending_builds_table.rb
  20210525085158_initialize_conversion_of_deployments_to_bigint.rb
  20210525085325_backfill_deployments_for_bigint_conversion.rb
  20210525100539_initialize_conversion_of_geo_job_artifact_deleted_events_to_bigint.rb
  20210525100603_backfill_geo_job_artifact_deleted_events_for_bigint_conversion.rb
  20210525184900_add_latest_pipeline_id_into_vulnerability_statistics_table.rb
  20210526135911_create_ci_minutes_additional_packs.rb
  20210526155257_rename_sync_security_report_approval_rules_sidekiq_queue.rb
  20210526160133_remove_segment_selections_table.rb
  20210526181820_add_index_to_vulnerability_statistics_on_latest_pipeline_id.rb
  20210526181821_add_foreign_key_for_latest_pipeline_id_to_ci_pipelines.rb
  20210526190259_add_ci_daily_pipeline_schedule_triggers_to_plan_limits.rb
  20210526190553_insert_ci_daily_pipeline_schedule_triggers_plan_limits.rb
  20210526222715_backfill_draft_status_on_merge_requests.rb
  20210527065005_add_index_for_cadence_iterations_automation.rb
  20210527130524_rename_experiment_subjects_group_id_to_namespace_id.rb
  20210527131039_clean_up_rename_experiment_subjects_group_id_to_namespace_id.rb
  20210527133919_add_diff_max_lines_to_application_settings.rb
  20210527134019_add_diff_max_files_to_application_settings.rb
  20210527185542_add_prevent_sharing_groups_outside_hierarchy_to_namespace_settings.rb
  20210527194558_create_ci_job_token_project_scope_links.rb
  20210529164247_change_iterations_title_uniqueness_index.rb
  20210531053916_rename_instance_statistics_measurements.rb
  20210531054108_finalize_rename_instance_statistics_measurements.rb
  20210531070452_default_enforce_ssh_key_expiration.rb
  20210531071107_enable_enforce_ssh_key_expiration.rb
  20210601073400_fix_total_stage_in_vsa.rb
  20210601080039_group_protected_environments_add_index_and_constraint.rb
  20210601123341_add_running_builds_table.rb
  20210601125410_add_runners_created_at_index.rb
  20210601131742_update_web_hook_calls_limit.rb
  20210601132134_remove_partial_index_for_hashed_storage_migration.rb
  20210601133459_replace_runners_contacted_at_index.rb
  20210602122213_add_upcoming_reconciliations.rb
  20210602122233_add_runners_description_index.rb
  20210602155056_add_merge_request_diff_commit_users.rb
  20210602155110_add_merge_request_diff_commit_user_columns.rb
  20210602164044_schedule_latest_pipeline_id_population.rb
  20210603140302_add_pronouns_to_user_details.rb
  20210603222333_remove_builds_email_service_from_services.rb
  20210604032738_create_dast_site_profiles_builds.rb
  20210604034158_add_ci_build_id_fk_to_dast_site_profiles_builds.rb
  20210604034354_add_dast_site_profile_id_fk_to_dast_site_profiles_builds.rb
  20210604051330_create_dast_scanner_profiles_builds.rb
  20210604051742_add_ci_build_id_fk_to_dast_scanner_profiles_builds.rb
  20210604051917_add_dast_scanner_profile_id_fk_to_dast_scanner_profiles_builds.rb
  20210604070207_retry_backfill_traversal_ids.rb
  20210604082145_create_external_status_checks_table.rb
  20210604085600_rename_status_check_responses_approval_rule.rb
  20210604133651_schedule_merge_request_diff_users_background_migration.rb
  20210606143426_add_index_for_container_registry_access_level.rb
  20210607050531_add_text_limit_to_user_details_pronouns.rb
  20210607080044_remove_temporary_index_on_security_findings_scan_id.rb
  20210607154719_add_job_token_scope_enabled_to_ci_cd_settings.rb
  20210608072312_initialize_conversion_of_ci_stages_to_bigint.rb
  20210608072346_backfill_ci_stages_for_bigint_conversion.rb
  20210608103230_add_issue_id_to_test_report.rb
  20210608103235_add_issue_index_to_test_report.rb
  20210608110752_change_column_null_test_report_requirement.rb
  20210608110760_add_requirement_test_reports_foreign_key.rb
  20210609013512_add_unique_index_for_batched_background_migrations.rb
  20210609090856_add_expiry_id_ssh_key_notification_index.rb
  20210609125005_drop_non_partitioned_web_hook_logs.rb
  20210609192728_add_status_check_foreign_key_to_external_status_check_id.rb
  20210609193101_add_status_check_foreign_key_to_protected_branch_id.rb
  20210609202501_schedule_backfill_draft_status_on_merge_requests.rb
  20210610042700_remove_clusters_applications_fluentd_table.rb
  20210610102410_add_protected_attribute_to_pending_builds.rb
  20210610102413_migrate_protected_attribute_to_pending_builds.rb
  20210610113229_add_index_to_protected_pending_builds.rb
  20210610141711_disable_expiration_policies_linked_to_no_container_images.rb
  20210610153556_delete_legacy_operations_feature_flags.rb
  20210611080951_fix_missing_traversal_ids.rb
  20210611082822_add_pages_file_entries_to_plan_limits.rb
  20210611100359_rebuild_index_for_cadence_iterations_automation.rb
  20210611101034_add_devops_adoption_sast_dast.rb
  20210614124111_add_devops_adoption_sast_dast_indexes.rb
  20210614131002_add_detection_method_to_vulnerabilities_finding.rb
  20210614142311_add_running_container_scanning_max_size_to_plan_limits.rb
  20210614143954_add_unique_index_for_helm_packages.rb
  20210615064342_add_issue_id_to_requirement.rb
  20210615234935_fix_batched_migrations_old_format_job_arguments.rb
  20210616110748_add_issue_index_to_requirement.rb
  20210616111311_add_issue_requirement_foreign_key.rb
  20210616134905_add_timestamp_to_schema_migration.rb
  20210616145254_add_partial_index_for_ci_builds_token.rb
  20210616154808_remove_ci_build_protected_index.rb
  20210616185947_add_mailgun_settings_to_application_setting.rb
  20210617022324_create_incident_management_pending_alert_escalations.rb
  20210617161348_cascade_delete_freeze_periods.rb
  20210617180131_migrate_usage_ping_sidekiq_queue.rb
  20210621043337_rename_services_to_integrations.rb
  20210621044000_rename_services_indexes_to_integrations.rb
  20210621084632_add_summary_to_timelogs.rb
  20210621090030_add_text_limit_to_timelogs_summary.rb
  20210621091830_add_devops_adoption_snapshot_dependency_scanning.rb
  20210621111747_add_ci_artifacts_devops_adoption_index.rb
  20210621155328_replace_project_authorizations_project_id_index.rb
  20210621164210_drop_remove_on_close_from_labels.rb
  20210621223000_steal_background_jobs_that_reference_services.rb
  20210621223242_finalize_rename_services_to_integrations.rb
  20210622041846_finalize_push_event_payloads_bigint_conversion.rb
  20210622045705_finalize_events_bigint_conversion.rb
  20210622135221_add_foreign_key_for_environment_id_to_environments.rb
  20210622141148_schedule_delete_orphaned_deployments.rb
  20210623074226_add_usage_ping_features_enabled_to_application_settings.rb
  20210623123722_add_present_on_default_branch_to_vulnerabilities.rb
  20210623133635_create_error_tracking_errors.rb
  20210623163342_add_index_to_compliance_management_frameworks_pipeline_configuration.rb
  20210624112821_add_devops_adoption_coverage_fuzzing.rb
  20210624180613_add_last_synced_at_to_licenses.rb
  20210625094554_create_error_tracking_error_events.rb
  20210627204936_add_plan_limits_max_size_cluster_image_scanning_column.rb
  20210628124505_reset_job_token_scope_enabled.rb
  20210628154900_create_detached_partitions_table.rb
  20210629031900_associate_existing_dast_builds_with_variables.rb
  20210629101712_remove_deprecated_modsecurity_columns.rb
  20210629104933_drop_index_on_ci_builds_for_token.rb
  20210629153519_add_index_to_bulk_import_entities_on_bulk_import_id_and_status.rb
  20210630025020_migrate_push_event_payloads_event_id_back_to_integer_for_gitlab_com.rb
  20210630144339_add_invite_email_success_to_members.rb
  20210630222522_add_customers_dot_jwt_signing_key_to_application_settings.rb
  20210630224625_generate_customers_dot_jwt_signing_key.rb
  20210701033622_finalize_ci_builds_needs_bigint_conversion.rb
  20210701111627_add_upvotes_count_to_issues.rb
  20210701111909_backfill_issues_upvotes_count.rb
  20210701141346_finalize_ci_builds_stage_id_bigint_conversion.rb
  20210702124842_add_ci_job_trace_size_to_plan_limits.rb
  20210705124128_add_project_settings_previous_default_branch.rb
  20210705130919_create_container_repos_on_exp_cleanup_status_project_id_start_date_index.rb
  20210705132928_add_new_user_signups_cap_to_namespace_settings.rb
  20210705142714_initialize_conversion_of_ci_builds_metadata_id_to_bigint.rb
  20210705143150_backfill_ci_builds_metadata_id_for_bigint_conversion.rb
  20210705144657_add_instance_runners_enabled_to_ci_pending_build.rb
  20210706084713_add_devops_adoption_snapshots_index.rb
  20210706112800_remove_cloud_license_enabled_from_application_settings.rb
  20210706115312_add_upvotes_count_index_to_issues.rb
  20210706120847_remove_framework_column_from_compliance_management_frameworks.rb
  20210706142819_re_schedule_latest_pipeline_id_population.rb
  20210706151154_add_remaining_ci_minutes_to_ci_pending_build.rb
  20210706151446_add_namespace_foreign_key_to_ci_pending_build.rb
  20210706152139_add_index_type_to_postgres_indexes_view.rb
  20210706212710_finalize_ci_job_artifacts_bigint_conversion.rb
  20210706213537_add_premium_and_ultimate_plan_limits.rb
  20210707095545_add_status_to_merge_request_cleanup_schedules.rb
  20210707113056_add_tags_array_to_ci_pending_builds.rb
  20210707151536_create_vulnerability_finding_evidence_sources.rb
  20210707163659_add_vulnerability_events_to_integrations.rb
  20210707171536_create_vulnerability_finding_evidence_assets.rb
  20210707171554_create_vulnerability_flags.rb
  20210707173645_add_project_settings_previous_default_branch_text_limit.rb
  20210707181536_create_vulnerability_finding_evidence_supporting_messages.rb
  20210707210916_finalize_ci_stages_bigint_conversion.rb
  20210708011425_rename_ci_builds_metadata_foreign_key.rb
  20210708011426_finalize_ci_builds_metadata_bigint_conversion.rb
  20210708063032_add_failed_count_to_merge_request_cleanup_schedules.rb
  20210708124229_add_security_scans_created_at_index.rb
  20210708130419_reschedule_merge_request_diff_users_background_migration.rb
  20210708131048_add_error_tracking_counter_cache.rb
  20210708134446_remove_not_null_constraint_from_terms.rb
  20210708202548_add_scanners_column_to_approval_project_rules.rb
  20210709024048_finalize_push_event_payloads_bigint_conversion_2.rb
  20210709085759_index_batched_migration_jobs_by_max_value.rb
  20210709132707_change_default_job_token_scope_enabled.rb
  20210709221051_create_work_item_types.rb
  20210709221659_add_work_item_type_id_to_issue.rb
  20210712052519_add_label_applied_issuable_closed_to_issuable_sla.rb
  20210713042000_fix_ci_sources_pipelines_index_names.rb
  20210713042153_finalize_ci_sources_pipelines_bigint_conversion.rb
  20210713070842_update_merge_request_cleanup_schedules_scheduled_at_index.rb
  20210713075117_re_schedule_latest_pipeline_id_population_with_logging.rb
  20210713123345_create_dast_profile_schedule.rb
  20210713135152_add_devops_adoption_vulnerability_management_used_count.rb
  20210713144637_add_vulnerabilities_created_at_index.rb
  20210713211008_create_banned_users.rb
  20210713223941_remove_null_constraint_from_security_findings.rb
  20210714015537_finalize_ci_build_trace_chunks_bigint_conversion.rb
  20210714043818_add_index_for_label_applied_to_issuable_sla.rb
  20210714120600_add_detected_at_to_vulnerabilities.rb
  20210715074359_add_foreign_key_to_dast_profile_schedules_on_dast_profile.rb
  20210715074933_add_foreign_key_to_dast_profile_schedules_on_user.rb
  20210715075203_add_foreign_key_to_dast_profile_schedules_on_project.rb
  20210716074555_revert_default_job_token_scope.rb
  20210719145532_add_foreign_keys_view.rb
  20210719182944_add_request_response_to_supporing_message.rb
  20210719192928_add_invite_email_success_to_member.rb
  20210720083432_change_application_setting_terms_not_null.rb
  20210720130006_create_error_tracking_client_keys.rb
  20210720140841_create_postgres_async_indexes_table.rb
  20210721122840_remove_seat_link_enabled_from_application_settings.rb
  20210721125525_add_signed_file_to_packages_debian_project_distributions.rb
  20210721125545_add_signed_file_to_packages_debian_group_distributions.rb
  20210721125620_add_text_limit_to_packages_debian_project_distributions_signed_files.rb
  20210721125637_add_text_limit_to_packages_debian_group_distributions_signed_files.rb
  20210721125804_remove_signing_keys_from_packages_debian_project_distributions.rb
  20210721125820_remove_signing_keys_from_packages_debian_group_distributions.rb
  20210721134706_add_type_new_to_integrations.rb
  20210721134707_add_text_limit_to_integrations_type_new.rb
  20210721135638_add_triggers_to_integrations_type_new.rb
  20210721145029_add_state_to_members.rb
  20210721174411_add_is_removed_to_escalation_rules.rb
  20210721174441_update_escalation_rule_fk_for_pending_alert_escalations.rb
  20210721174453_remove_schedule_and_status_null_constraints_from_pending_escalations_alert.rb
  20210721174521_add_non_null_constraint_for_escalation_rule_on_pending_alert_escalations.rb
  20210721211602_add_vulnerability_amount_column_into_approval_project_rules.rb
  20210722010101_reschedule_delete_orphaned_deployments.rb
  20210722042939_update_issuable_slas_where_issue_closed.rb
  20210722055217_add_updated_at_index_on_merge_requests.rb
  20210722074220_remove_null_constraint_on_schedule_from_escalation_rules.rb
  20210722074242_add_user_to_escalation_rules.rb
  20210722074256_add_user_index_to_escalation_rules.rb
  20210722074309_add_user_fk_to_escalation_rules.rb
  20210722074339_add_xor_check_constraint_for_escalation_rules.rb
  20210722110515_revert_backfill_ci_build_trace_sections_for_bigint_conversion.rb
  20210722132844_devops_adoption_drop_redundant_indexes.rb
  20210722150102_operations_feature_flags_correct_flexible_rollout_values.rb
  20210722151951_add_columns_to_security_scans.rb
  20210722155635_finalize_convert_geo_job_artifact_deleted_events_bigint.rb
  20210722210041_add_overridden_uuid_to_security_findings.rb
  20210723173132_create_index_on_environments_auto_delete_at.rb
  20210726134950_add_integrated_to_error_tracking_setting.rb
  20210726202748_add_vulnerability_severities_into_approval_project_rules.rb
  20210727113447_backfill_integrations_type_new.rb
  20210727175201_remove_unused_columns_from_elastic_reindexing_tasks.rb
  20210728110654_add_status_to_error_tracking_error.rb
  20210728174349_add_fk_to_security_scans_columns.rb
  20210729061526_add_pronunciation_to_user_details.rb
  20210729061556_add_text_limit_to_user_details_pronunciation.rb
  20210729081351_create_topics.rb
  20210729081739_create_project_topics.rb
  20210729123101_confirm_security_bot.rb
  20210729125641_add_foreign_key_to_project_on_project_topic.rb
  20210729125659_add_foreign_key_to_topic_on_project_topic.rb
  20210729161242_remove_foreign_keys_from_ci_test_case_failures.rb
  20210729163312_re_schedule_latest_pipeline_id_population_with_all_security_related_artifact_types.rb
  20210729192148_remove_foreign_keys_from_ci_test_cases.rb
  20210729192959_drop_ci_test_case_failures_table.rb
  20210729193056_drop_ci_test_cases_table.rb
  20210729202143_create_incident_management_issuable_escalation_statuses.rb
  20210730101609_create_analytics_cycle_analytics_stage_event_hashes.rb
  20210730102952_add_stage_hash_fk_to_project_stages.rb
  20210730103808_add_stage_hash_fk_to_group_stages.rb
  20210730104800_schedule_extract_project_topics_into_separate_table.rb
  20210730170823_schedule_security_setting_creation.rb
  20210730194555_create_incident_management_pending_issue_escalations.rb
  20210731132939_backfill_stage_event_hash.rb
  20210802043253_finalize_push_event_payloads_bigint_conversion_3.rb
  20210802112233_add_index_issues_on_project_id_and_state_id_and_created_at_and_id.rb
  20210802131812_finalize_convert_deployments_bigint.rb
  20210803110920_add_unique_index_to_vulnerability_flags_table.rb
  20210804150320_create_base_work_item_types.rb
  20210804150624_remove_cluster_image_scanning_from_approval_project_rules.rb
  20210804151444_prepare_indexes_for_ci_job_artifact_bigint_conversion.rb
  20210804153307_prepare_indexes_for_tagging_bigint_conversion.rb
  20210804154407_prepare_indexes_for_ci_stage_bigint_conversion.rb
  20210804200114_create_customer_relations_organizations.rb
  20210804202057_add_tmp_index_approval_project_rules_scanners.rb
  20210805085706_add_rule_index_to_security_orchestration_policy_rule_schedules.rb
  20210805131510_finalize_ci_builds_runner_session_bigint_conversion.rb
  20210805192450_update_trial_plans_ci_daily_pipeline_schedule_triggers.rb
  20210806011811_schedule_backfill_draft_column_on_merge_requests_rerun.rb
  20210806131706_finalize_taggins_bigint_conversion.rb
  20210806152104_add_pypi_package_requests_forwarding_to_application_settings.rb
  20210807101446_add_cadence_to_dast_profile_schedules.rb
  20210807101621_add_timezone_to_dast_profile_schedules.rb
  20210807102004_add_starts_at_to_dast_profile_schedules.rb
  20210809014850_create_agent_group_authorizations.rb
  20210809014918_add_agent_group_authorizations_foreign_keys.rb
  20210809123658_orphaned_invite_tokens_cleanup.rb
  20210809143931_finalize_job_id_conversion_to_bigint_for_ci_job_artifacts.rb
  20210809194250_rename_tables_ci_build_trace_section.rb
  20210811120204_create_customer_relations_contacts.rb
  20210811122206_update_external_project_bots.rb
  20210811193033_add_unique_index_to_vulnerability_finding_links.rb
  20210811214811_schedule_copy_ci_builds_columns_to_security_scans.rb
  20210812145010_reset_job_token_scope_enabled_again.rb
  20210812171704_create_project_ci_feature_usages.rb
  20210813101742_create_zentao_tracker_data.rb
  20210813111909_create_ci_build_trace_metadata.rb
  20210813131313_create_foreign_key_on_contacts_group_id.rb
  20210813151908_replace_external_wiki_triggers.rb
  20210813195518_schedule_recalculate_uuid_on_vulnerabilities_occurrences3.rb
  20210816095826_add_unique_index_on_dast_profile_to_dast_profile_schedules.rb
  20210816161107_remove_index_containing_faulty_regex.rb
  20210816183304_schedule_copy_ci_builds_columns_to_security_scans2.rb
  20210816192041_add_invites_email_success_to_member.rb
  20210817024335_prepare_indexes_for_events_bigint_conversion.rb
  20210817084338_add_foreign_key_from_ci_build_metadata_to_ci_job_artifacts.rb
  20210817130415_add_project_id_name_version_id_to_npm_packages.rb
  20210817172214_add_yaml_limits_application_setting.rb
  20210818034001_index_historical_data_on_recorded_at.rb
  20210818055357_add_unique_commit_design_user_mention_indexes.rb
  20210818061156_remove_project_profile_compound_index_from_dast_profile_schedules.rb
  20210818115613_add_index_project_id_on_dast_profile_schedule.rb
  20210818175949_update_integrations_trigger_type_new_on_insert.rb
  20210818185548_add_tag_ids_index_to_ci_pending_build.rb
  20210818185845_backfill_projects_with_coverage.rb
  20210818193008_add_file_template_project_to_service_desk_settings.rb
  20210818200455_add_file_template_project_foreign_key_to_service_desk_settings.rb
  20210818220234_add_default_project_approval_rules_vuln_allowed.rb
  20210819120243_add_throttle_files_api_columns.rb
  20210819145000_drop_temporary_columns_and_triggers_for_ci_builds_runner_session.rb
  20210819152723_remove_tmp_index_approval_project_rules_scanners.rb
  20210819153805_set_default_job_token_scope_true.rb
  20210819162047_add_columns_to_namespace_settings.rb
  20210819183128_reset_severity_levels_to_new_default.rb
  20210819185500_create_external_audit_event_destinations_table.rb
  20210820171834_add_foreign_keys_for_pending_issue_escalations.rb
  20210823113259_steal_merge_request_diff_commit_users_migration.rb
  20210823132600_remove_duplicate_dast_site_tokens.rb
  20210823142036_drop_temporary_trigger_for_ci_job_artifacts.rb
  20210823172643_create_user_group_callout.rb
  20210823193234_remove_allow_editing_commit_messages_from_project_settings.rb
  20210823213417_create_dependency_proxy_image_ttl_group_policies.rb
  20210824055322_add_project_namespace_id_to_project.rb
  20210824102624_add_project_namespace_index_to_project.rb
  20210824102750_add_project_namespace_foreign_key_to_project.rb
  20210824105038_add_timestamp_columns_to_ci_build_trace_metadata.rb
  20210824160459_add_notification_level_to_ci_namespace_monthly_usages.rb
  20210824174615_prepare_ci_builds_metadata_and_ci_build_async_indexes.rb
  20210825104558_change_description_limit_error_tracking_event.rb
  20210825104656_create_analytics_cycle_analytics_merge_request_stage_events.rb
  20210825110016_create_analytics_cycle_analytics_issue_stage_events.rb
  20210825150212_cleanup_remaining_orphan_invites.rb
  20210825182303_remove_duplicate_dast_site_tokens_with_same_token.rb
  20210825190458_add_user_deactivation_email_option_to_application_settings.rb
  20210825193448_add_iteration_cadence_id_to_issue_boards.rb
  20210825193548_add_fk_to_iteration_cadence_id_on_boards.rb
  20210825193652_backfill_cadence_id_for_boards_scoped_to_iteration.rb
  20210826110839_prepare_indexes_for_ci_job_artifacts_expire_at_unlocked.rb
  20210826120834_add_locked_to_ci_job_artifacts.rb
  20210826122748_create_loose_foreign_keys_deleted_records.rb
  20210826124311_add_index_to_error_tracking_error.rb
  20210826145509_add_function_for_inserting_deleted_records.rb
  20210826170902_add_throttle_unauthenticated_api_columns.rb
  20210826171758_initialize_throttle_unauthenticated_api_columns.rb
  20210826193907_add_unique_index_dast_site_token_project_id_and_url.rb
  20210830085837_add_throttle_authenticated_git_lfs_columns.rb
  20210830104800_reschedule_extract_project_topics_into_separate_table.rb
  20210830140524_add_state_to_member.rb
  20210830154358_add_yaml_limit_constraints.rb
  20210831123008_drop_temporary_trigger_for_ci_sources_pipelines.rb
  20210831134840_add_package_file_id_channel_idx_to_packages_helm_file_metadata.rb
  20210831135249_add_installable_helm_pkgs_idx_to_packages.rb
  20210831203408_upsert_base_work_item_types.rb
  20210901044202_push_event_payloads_bigint_conversion_remove_triggers.rb
  20210901044237_events_bigint_conversion_remove_triggers.rb
  20210901065504_add_index_on_name_and_id_to_public_groups.rb
  20210901153324_slice_merge_request_diff_commit_migrations.rb
  20210901184511_prepare_async_indexes_for_ci_builds.rb
  20210902144144_drop_temporary_columns_and_triggers_for_ci_build_needs.rb
  20210902171406_add_latest_column_into_the_security_scans_table.rb
  20210902171808_set_default_job_token_scope_false.rb
  20210902184334_add_expire_access_tokens_to_doorkeeper_application.rb
  20210903054158_recreate_stage_issue_events_table_with_bigints.rb
  20210906100021_delete_project_namespace_trigger.rb
  20210906100316_drop_temporary_columns_and_triggers_for_ci_build_trace_chunks.rb
  20210906130643_drop_temporary_columns_and_triggers_for_taggings.rb
  20210907013944_cleanup_bigint_conversion_for_ci_builds_metadata.rb
  20210907021940_cleanup_bigint_conversion_for_ci_stages.rb
  20210907033745_cleanup_bigint_conversion_for_deployments.rb
  20210907041000_cleanup_bigint_conversion_for_geo_job_artifact_deleted_events.rb
  20210907182337_add_group_id_fkey_for_user_group_callout.rb
  20210907182359_add_user_id_fkey_for_user_group_callout.rb
  20210907211557_finalize_ci_builds_bigint_conversion.rb
  20210908060951_add_dast_schedules_to_plan_limits.rb
  20210908061132_insert_dast_profile_schedules_plan_limits.rb
  20210908100810_add_jobs_per_stage_page_size_to_application_settings.rb
  20210908132335_disable_job_token_scope_when_unused.rb
  20210908140437_add_sidekiq_limits_to_application_settings.rb
  20210908185736_add_status_to_dependency_proxy_manifests.rb
  20210908185754_add_status_to_dependency_proxy_blobs.rb
  20210908195506_add_data_to_vulnerability_finding_evidence.rb
  20210909104800_reschedule_extract_project_topics_into_separate_table_2.rb
  20210909152027_remove_container_registry_enabled.rb
  20210909184349_add_index_package_id_id_on_package_files.rb
  20210910014741_add_dependency_proxy_ttl_group_policy_worker_capacity_to_application_settings.rb
  20210910015047_add_app_settings_dep_proxy_ttl_worker_capacity_check_constraint.rb
  20210910141043_change_ci_minutes_additional_pack_text_limit.rb
  20210910192921_add_report_type_into_approval_project_rules.rb
  20210910194952_update_report_type_for_existing_approval_project_rules.rb
  20210912034903_add_runner_features_to_ci_builds_metadata.rb
  20210913010411_create_agent_project_authorizations.rb
  20210913010432_add_agent_project_authorizations_foreign_keys.rb
  20210913122457_add_namespace_traversal_ids_to_ci_pending_builds.rb
  20210913224558_update_dependency_proxy_manifests_uniqueness_constraint.rb
  20210914094840_add_gin_index_on_pending_builds_namespace_traversal_ids.rb
  20210914095310_cleanup_orphan_project_access_tokens.rb
  20210914145810_add_throttle_deprecated_api_columns.rb
  20210914172202_add_status_index_to_dependency_proxy_tables.rb
  20210915000453_add_index_on_clusters_integration_prometheus_enabled.rb
  20210915001242_add_index_on_clusters_integration_elastic_stack_enabled.rb
  20210915022415_cleanup_bigint_conversion_for_ci_builds.rb
  20210915070423_add_avatar_and_description_to_topic.rb
  20210915202900_prepare_index_resource_group_status_commit_id_for_ci_builds.rb
  20210916132547_add_process_mode_to_resource_groups.rb
  20210917134321_remove_temporary_index_for_project_topics_on_taggings.rb
  20210917153645_remove_pipeline_fk_from_packages_build_infos.rb
  20210917153905_remove_pipeline_fk_from_packages_package_file_build_infos.rb
  20210917224419_add_registration_objective_to_user_detail.rb
  20210918201050_remove_old_pending_jobs_for_recalculate_vulnerabilities_occurrences_uuid.rb
  20210918202855_reschedule_pending_jobs_for_recalculate_vulnerabilities_occurrences_uuid.rb
  20210920104446_add_text_limit_to_topics_description_and_avatar.rb
  20210920232025_remove_ci_builds_foreign_key_from_terraform_state_versions.rb
  20210921032008_add_suggest_pipeline_enabled_to_application_settings.rb
  20210921062820_add_image_location_index_to_vulnerability_occurrences.rb
  20210921063924_index_labels_using_varchar_pattern_ops.rb
  20210921191010_add_report_type_index_into_approval_project_rules.rb
  20210922021816_drop_int4_columns_for_ci_job_artifacts.rb
  20210922025631_drop_int4_column_for_ci_sources_pipelines.rb
  20210922082019_drop_int4_column_for_events.rb
  20210922084115_concurrent_index_resource_group_status_commit_id_for_ci_builds.rb
  20210922091402_drop_int4_column_for_push_event_payloads.rb
  20210922172056_add_unique_namespaces_index_on_name_parent_id_and_type.rb
  20210922172156_drop_unique_namespaces_index_on_name_and_parent_id.rb
  20210922215740_create_issue_customer_relations_contacts.rb
  20210922220104_add_issue_customer_relations_contacts_foreign_keys.rb
  20210923042323_add_meta_data_to_user_credit_card_validations.rb
  20210923042324_limit_holder_name_on_user_credit_card_validations.rb
  20210923042325_index_meta_data_on_user_credit_card_validations.rb
  20210923133143_remove_redundant_taggings_index.rb
  20210923135909_remove_delayed_project_removal_from_namespaces.rb
  20210923151641_change_default_for_integrated_error_tracking.rb
  20210923192648_remove_foreign_keys_from_open_project_data_table.rb
  20210923192649_remove_open_project_data_table.rb
  20210927153807_update_issues_relative_position_indexes.rb
  20210928155022_improve_index_for_error_tracking.rb
  20210928171122_add_group_id_status_id_index_to_dependency_proxy_tables.rb
  20210929025600_add_phone_to_user_details.rb
  20210929030834_add_text_limit_to_user_details_phone.rb
  20210929031049_add_unique_index_phone_on_user_details.rb
  20210929032555_create_verification_codes.rb
  20210929115340_add_security_policy_configurations_management_project_id_foreign_key.rb
  20210929121516_add_releases_author_id_id_created_at_index.rb
  20210929144453_add_warn_about_potentially_unwanted_characters_to_project_settings.rb
  20210930081208_fix_deprecated_api_throttle_defaults.rb
  20210930211936_backfill_user_namespace.rb
  20211001001222_add_source_version_to_bulk_imports.rb
  20211004062942_create_coverage_fuzzing_corpuses.rb
  20211004075629_add_topics_name_gin_index.rb
  20211004081911_add_external_event_destination_limit_to_plan_limits.rb
  20211004110500_add_temporary_index_to_issue_metrics.rb
  20211004110927_schedule_fix_first_mentioned_in_commit_at_job.rb
  20211004120135_schedule_add_primary_email_to_emails_if_user_confirmed.rb
  20211004122540_create_member_tasks.rb
  20211004151202_remove_bio_html_from_user_details.rb
  20211005010101_rereschedule_delete_orphaned_deployments.rb
  20211005063519_add_foreign_key_to_corpuses_on_project.rb
  20211005063616_add_foreign_key_to_corpuses_on_user.rb
  20211005063723_add_foreign_key_to_corpuses_on_package.rb
  20211005083015_recreate_index_security_ci_builds_on_name_and_id_parser_features.rb
  20211005092428_drop_time_range_partitioned_loose_fk.rb
  20211005093558_add_range_partitioned_loose_fk_table.rb
  20211005100112_recreate_loose_fk_insert_function.rb
  20211005112404_add_member_id_foreign_key_to_member_tasks.rb
  20211005112645_add_project_id_foreign_key_to_member_tasks.rb
  20211005194425_schedule_requirements_migration.rb
  20211006060254_add_topics_total_projects_count_cache.rb
  20211006060436_schedule_populate_topics_total_projects_count_cache.rb
  20211006103122_change_helm_channel_length.rb
  20211006122010_add_topics_total_projects_count_index.rb
  20211006145004_finalize_indexes_for_ci_job_artifacts_expire_at_unlocked.rb
  20211006174114_add_namespace_index_on_type_sync.rb
  20211007093340_remove_analytics_snapshots_segment_id_column.rb
  20211007113136_add_status_column_to_security_scans_table.rb
  20211007155221_schedule_populate_status_column_of_security_scans.rb
  20211008043855_remove_notes_trigram_index.rb
  20211008181451_add_shared_runners_duration_to_ci_namespace_monthly_usages.rb
  20211008182954_add_shared_runners_duration_to_ci_project_monthly_usages.rb
  20211008193137_add_health_status_column_on_clusters_integration_prometheus.rb
  20211011004242_create_content_blocked_states.rb
  20211011104843_add_new_loose_fk_index.rb
  20211011140930_create_ci_namespace_mirrors.rb
  20211011140931_create_ci_project_mirrors.rb
  20211011140932_create_namespaces_sync_events.rb
  20211011141239_create_projects_sync_events.rb
  20211011141242_create_namespaces_sync_trigger.rb
  20211011141243_create_projects_sync_trigger.rb
  20211011152701_cleanup_delete_orphaned_deployments_background_migration.rb
  20211012015903_next_traversal_ids_sibling_function.rb
  20211012051221_add_index_btree_namespaces_traversal_ids.rb
  20211012091822_add_text_limit_to_bulk_imports_source_version.rb
  20211012134316_clean_up_migrate_merge_request_diff_commit_users.rb
  20211012143815_remove_merge_request_diff_commit_columns.rb
  20211012155931_remove_schedule_and_status_from_pending_alert_escalations.rb
  20211013014228_add_content_validation_endpoint_to_application_settings.rb
  20211013080714_add_network_to_user_credit_card_validations.rb
  20211013080715_limit_network_on_user_credit_card_validations.rb
  20211013080716_index_include_network_on_user_credit_card_validations.rb
  20211013125341_create_index_security_ci_builds_on_name_and_id_parser_features.rb
  20211013192749_add_states_into_approval_project_rules.rb
  20211015021114_add_merge_commit_template_to_project_settings.rb
  20211015024135_add_merge_commit_template_limit_to_project_settings.rb
  20211018101034_add_tmp_project_id_column_to_namespaces.rb
  20211018101552_add_index_to_tmp_project_id_column_on_namespaces_table.rb
  20211018101852_add_fk_to_tmp_project_id_column_on_namespaces_table.rb
  20211018102252_add_index_to_group_id_column_on_webhooks_table.rb
  20211018123316_remove_not_null_constraint_and_default_for_public_email.rb
  20211018152654_schedule_remove_duplicate_vulnerabilities_findings3.rb
  20211018161447_fix_double_entries_in_postgres_index_view.rb
  20211019153615_add_state_to_merge_request_assignees.rb
  20211020030948_add_runtime_runner_features_to_ci_builds_metadata.rb
  20211020095357_add_group_traversal_id_index.rb
  20211021125908_add_sentry_settings_to_application_settings.rb
  20211021131217_add_deployments_environment_id_and_ref_index.rb
  20211021134458_add_limits_to_sentry_settings_on_application_settings.rb
  20211021140426_remove_geo_upload_deprecated_fields.rb
  20211021141930_drop_geo_upload_deleted_events_table.rb
  20211022112202_add_cluster_id_location_index_to_vulnerability_occurrences.rb
  20211022113000_drop_index_security_ci_builds_on_name_and_id_parser_features_broken.rb
  20211022160154_remove_outdated_fields_from_geo_node_status.rb
  20211022214523_schedule_recalculate_vulnerability_finding_signatures_for_findings.rb
  20211023102243_schedule_delete_invalid_epic_issues.rb
  20211025103744_add_state_id_to_vsa_issue_stage_events.rb
  20211025103758_add_state_id_to_vsa_merge_request_stage_events.rb
  20211026124336_add_archive_trace_events_to_integrations.rb
  20211026143238_remove_index_releases_on_author_id.rb
  20211027043206_track_ci_pipeline_deletions.rb
  20211027043229_track_ci_build_deletions.rb
  20211027064021_track_deletions_in_ci_runners.rb
  20211027064156_track_deletions_in_chat_names.rb
  20211027112901_drop_index_keys_on_expires_at_and_before_expiry_notification_undelivered.rb
  20211027203950_add_updated_index_for_dormant_users.rb
  20211027204011_remove_index_for_dormant_users.rb
  20211028085926_add_occurrence_id_id_desc_index_to_vulnerability_occurrence_pipelines.rb
  20211028100303_tmp_index_for_delete_issue_merge_request_taggings_records.rb
  20211028100843_delete_issue_merge_request_taggings_records.rb
  20211028123412_add_async_index_on_events_using_btree_created_at_id.rb
  20211028132247_create_packages_npm_metadata.rb
  20211028155449_schedule_fix_merge_request_diff_commit_users_migration.rb
  20211028212259_add_default_to_personal_access_tokens_prefix.rb
  20211029102822_add_open_source_plan.rb
  20211031152417_add_indexes_to_issue_stage_events.rb
  20211031154919_add_indexes_to_merge_request_stage_events.rb
  20211101132310_add_reindexing_queue.rb
  20211101165656_create_upload_states.rb
  20211101222614_consume_remaining_user_namespace_jobs.rb
  20211102103127_add_temp_index_to_vulnerability_occurrences.rb
  20211102114802_update_vulnerability_occurrences_location.rb
  20211103062728_add_with_highest_role_minimal_access_to_users_statistics.rb
  20211103141403_remove_propagate_service_template_worker.rb
  20211103162025_add_index_on_events_using_btree_created_at_id.rb
  20211104012209_add_text_limit_to_application_settings_content_validation_endpoint_url.rb
  20211104044453_remove_redundant_events_index.rb
  20211104165220_remove_vulnerability_finding_links.rb
  20211105010101_add_archived_column_to_deployments.rb
  20211105125756_add_read_at_to_dependency_proxy_manifests.rb
  20211105125813_add_read_at_to_dependency_proxy_blobs.rb
  20211105135157_drop_ci_build_trace_sections.rb
  20211105160316_create_dotenv_application_limits.rb
  20211105161404_insert_dotenv_application_limits.rb
  20211108154510_create_pipeline_triggers_application_limits.rb
  20211108154841_insert_pipeline_triggers_application_limits.rb
  20211108203248_update_dependency_proxy_indexes_with_read_at.rb
  20211108204736_add_policy_idx_to_approval_project_rule.rb
  20211108211434_remove_index_for_resource_group.rb
  20211109100050_add_consume_after_to_loose_fk_deleted_records.rb
  20211109101010_support_partition_query_in_loose_fk_table.rb
  20211109112454_drop_old_loose_fk_deleted_records_index.rb
  20211110010101_add_index_on_unarchived_deployments.rb
  20211110014701_create_agent_activity_events.rb
  20211110015252_add_agent_activity_events_foreign_keys.rb
  20211110092710_create_issue_emails.rb
  20211110100050_add_has_shimo_to_project_settings.rb
  20211110143306_add_not_null_constraint_to_security_findings_uuid.rb
  20211110151320_add_temporary_index_on_security_findings_uuid.rb
  20211110151350_schedule_drop_invalid_security_findings.rb
  20211111112425_create_merge_requests_compliance_violations.rb
  20211111112639_add_fk_compliance_violations_merge_request.rb
  20211111112713_add_fk_compliance_violations_violating_user.rb
  20211111164025_add_squash_commit_template_to_project_settings.rb
  20211111164047_add_squash_commit_template_limit_to_project_settings.rb
  20211112073413_change_package_index_on_corpus.rb
  20211112113300_remove_ci_pipeline_chat_data_fk_on_chat_names.rb
  20211112155416_populate_default_value_for_personal_access_tokens_prefix.rb
  20211115132613_create_incident_management_timeline_events.rb
  20211115142803_add_foreign_key_to_incident_management_timeline_events_on_project.rb
  20211115142847_add_foreign_key_to_incident_management_timeline_events_on_user.rb
  20211115142911_add_foreign_key_to_incident_management_timeline_events_on_issue.rb
  20211115145107_add_created_at_to_namespace_monthly_usages.rb
  20211115151704_add_index_on_projects_import_type_id.rb
  20211115154103_add_created_at_to_project_monthly_usage.rb
  20211116091751_change_namespace_type_default_to_user.rb
  20211116093739_add_foreign_key_to_incident_management_timeline_events_on_updated_by_user.rb
  20211116111644_schedule_remove_occurrence_pipelines_and_duplicate_vulnerabilities_findings.rb
  20211117084814_migrate_remaining_u2f_registrations.rb
  20211117174209_create_vulnerability_reads.rb
  20211118100959_change_default_value_of_loose_fk_deleted_records_partition.rb
  20211118103439_remove_hardcoded_partition_from_loose_fk_trigger_function.rb
  20211118114228_add_max_ssh_key_lifetime_to_application_settings.rb
  20211118124537_add_foreign_key_to_vulnerability_reads_on_vulnerability.rb
  20211118124628_add_foreign_key_to_vulnerability_reads_on_project.rb
  20211118124650_add_foreign_key_to_vulnerability_reads_on_scanner.rb
  20211118130836_drop_pages_deployments_builds_fk.rb
  20211118194239_drop_invalid_remediations.rb
  20211119085015_add_orignal_filename_to_ci_job_artifact.rb
  20211119085036_add_text_limit_to_job_artifact_original_filename.rb
  20211119154221_create_pages_deployment_states.rb
  20211119170805_remove_test_report_requirement_issue_constraint.rb
  20211119194024_add_required_approval_count_to_protected_environments.rb
  20211119195201_create_deployment_approvals.rb
  20211122033501_improve_index_on_events_for_calendar.rb
  20211122103051_add_line_code_to_draft_notes.rb
  20211122193948_cleanup_background_migration_of_requirements_to_work_items.rb
  20211122215001_add_policy_idx_to_approval_merge_request_rule.rb
  20211123135255_create_batched_background_migration_job_transition_logs.rb
  20211123161906_cleanup_after_drop_invalid_security_findings.rb
  20211123181236_add_user_foreign_key_to_deployment_approvals.rb
  20211123182614_make_iteration_cadences_start_date_nullable.rb
  20211124095704_add_draft_notes_line_code_text_limit.rb
  20211124132319_add_encrypted_static_objects_external_storage_auth_token.rb
  20211124132705_change_index_users_on_public_email.rb
  20211125120444_add_index_todos_project_id_user_id.rb
  20211126042235_add_sequence_column_to_sprints_table.rb
  20211126113029_add_text_limit_for_static_objects_external_storage_auth_token.rb
  20211126115449_encrypt_static_objects_external_storage_auth_token.rb
  20211126142200_add_encrypted_static_object_token.rb
  20211126142354_add_text_limit_to_encrypted_static_object_token.rb
  20211126204445_add_task_to_work_item_types.rb
  20211129151155_add_migrated_to_new_structure_column_to_vulnerability_occurrences.rb
  20211129151832_add_index_on_vulnerability_occurrences_migrated_to_new_structure_column.rb
  20211130151724_add_foreign_key_to_incident_management_timeline_events_on_note.rb
  20211130165043_backfill_sequence_column_for_sprints_table.rb
  20211130201100_track_deletions_in_namespaces.rb
  20211130201101_track_deletions_in_projects.rb
  20211130205719_add_uniqueness_for_evidence_occurrence_id.rb
  20211201061733_add_future_subscriptions_to_application_settings.rb
  20211201101541_drop_clusters_applications_runners_ci_runners_fk.rb
  20211201143042_create_lfs_object_states.rb
  20211202041233_add_deployment_foreign_key_to_deployment_approvals.rb
  20211202094944_move_loose_fk_deleted_records_to_dynamic_schema.rb
  20211202135508_add_index_on_packages_build_infos_package_id_pipeline_id.rb
  20211202145237_add_todos_project_and_id_index.rb
  20211203091642_add_index_to_projects_on_marked_for_deletion_at.rb
  20211204010826_add_index_snippets_on_project_id_and_title.rb
  20211206073851_create_calendar_events_index_synchronously.rb
  20211206074547_remove_old_calendar_events_index.rb
  20211206161271_add_indexes_for_primary_email_cleanup_migration.rb
  20211206162601_cleanup_after_add_primary_email_to_emails_if_user_confirmed.rb
  20211207081708_add_index_ci_job_artifacts_project_id_file_type.rb
  20211207090503_cleanup_first_mentioned_in_commit_jobs.rb
  20211207125331_remove_jobs_for_recalculate_vulnerabilities_occurrences_uuid.rb
  20211207135331_schedule_recalculate_uuid_on_vulnerabilities_occurrences4.rb
  20211207154413_add_ci_runners_index_on_created_at_where_active_is_false.rb
  20211207154414_add_ci_runners_index_on_contacted_at_where_active_is_false.rb
  20211207165508_add_protected_environments_required_approval_count_check_constraint.rb
  20211207173510_remove_extra_finding_evidence_tables_foreign_keys.rb
  20211207173511_remove_extra_finding_evidence_tables.rb
  20211208111425_add_executor_type_column_to_ci_runners.rb
  20211208122200_schedule_backfill_ci_namespace_mirrors.rb
  20211208122201_schedule_backfill_ci_project_mirrors.rb
  20211208171402_reschedule_recalculate_vulnerability_finding_signatures_for_findings.rb
  20211209093636_track_ci_job_artifacts_deletes.rb
  20211209093828_track_users_deletes.rb
  20211209093923_track_external_pull_requests_deletes.rb
  20211209094222_track_merge_requests_deletes.rb
  20211209103048_backfill_project_namespaces_for_group.rb
  20211209203820_add_tmp_index_on_report_type.rb
  20211209203821_convert_stringified_raw_metadata_hash_to_json.rb
  20211209230042_add_status_to_cluster_agent_tokens.rb
  20211210025754_alter_constraint_of_phone.rb
  20211210031721_change_user_details_phone_text_limit.rb
  20211210140000_add_temporary_static_object_token_index.rb
  20211210140629_encrypt_static_object_token.rb
  20211210173137_remove_vulnerability_finding_links_again.rb
  20211213064821_add_agent_id_location_index_to_vulnerability_occurrences.rb
  20211213102111_drop_ci_pipelines_mr_metrics_fk.rb
  20211213130324_update_timelogs_spent_at_default.rb
  20211213142344_add_settings_user_email_lookup_limit.rb
  20211213154259_add_status_to_packages_package_files.rb
  20211213154704_add_status_index_to_packages_package_files.rb
  20211214012507_backfill_incident_issue_escalation_statuses.rb
  20211214110307_remove_temp_index_from_vulnerability_occurrences.rb
  20211215090620_schedule_update_timelogs_null_spent_at.rb
  20211215182006_update_application_settings_protected_paths.rb
  20211216133107_add_cluster_agent_id_to_vulnerability_reads.rb
  20211216134134_add_text_limit_to_vulnerability_reads_cluster_agent_id.rb
  20211216135651_add_index_to_cluster_agent_id.rb
  20211216220939_add_group_crm_settings.rb
  20211217050753_remove_artifacts_archive_id_foreign_key_from_project_pages_metadata.rb
  20211217120000_modify_kubernetes_resource_location_index_to_vulnerability_occurrences.rb
  20211217145923_add_index_to_events_on_author_id_and_action_and_id.rb
  20211217174331_mark_recalculate_finding_signatures_as_completed.rb
  20211220064757_drop_temporary_indexes_for_primary_email_migration.rb
  20211220120402_add_index_on_ci_pipelines_user_id_id_failure_reason.rb
  20211220123956_update_invalid_member_states.rb
  20211220174504_add_secure_scanning_actions_to_onboarding_progresses.rb
  20211223125921_add_temp_index_to_members_state.rb
  20211224112937_add_packages_cleanup_package_file_worker_capacity_to_application_settings.rb
  20211224114539_add_packages_cleanup_package_file_worker_capacity_check_constraint_to_app_settings.rb
  20211229023654_add_async_index_ci_job_artifacts_project_id_file_type.rb
  20211230112517_remove_index_events_on_author_id_and_action_and_id.rb
  20211230113031_add_index_to_events_on_author_id_and_id.rb
  20220104060049_remove_foreign_key_ci_group_variables_group_id.rb
  20220104174445_add_ci_runners_index_on_active_state.rb
  20220105020514_remove_ci_minutes_additional_packs_namespace_id_foreign_key_constraint.rb
  20220105082217_add_verification_token_to_external_ae_destinations.rb
  20220105121325_add_route_namespace_reference.rb
  20220106111958_add_insert_or_update_vulnerability_reads_trigger.rb
  20220106112043_add_update_vulnerability_reads_trigger.rb
  20220106112085_add_update_vulnerability_reads_location_trigger.rb
  20220106141756_remove_lock_version_indexes.rb
  20220106163326_add_has_issues_on_vulnerability_reads_trigger.rb
  20220106185033_remove_finding_evidence_summary.rb
  20220106230629_add_registry_migration_application_settings.rb
  20220106230712_add_migration_columns_to_container_repositories.rb
  20220106231518_remove_foreign_key_ci_daily_build_group_report_results_group_id.rb
  20220106233459_remove_foreign_key_ci_pending_builds_namespace_id.rb
  20220106235626_remove_foreign_key_ci_runner_namespaces_namespace_id.rb
  20220107064845_populate_vulnerability_reads.rb
  20220107091629_add_route_namespace_index.rb
  20220107165036_remove_note_id_index.rb
  20220109133006_remove_ci_pipelines_lock_version_index.rb
  20220109134455_add_idx_vulnerability_occurrences_dedup_again.rb
  20220110170953_create_ci_secure_files.rb
  20220110171049_schedule_populate_test_reports_issue_id.rb
  20220110224913_remove_dast_scanner_profiles_builds_ci_build_id_fk.rb
  20220110231420_remove_requirements_management_test_reports_build_id_fk.rb
  20220110233155_remove_dast_site_profiles_builds_ci_build_id_fk.rb
  20220111002756_remove_security_scans_build_id_fk.rb
  20220111023852_index_cluster_agent_tokens_on_status.rb
  20220111093534_remove_index_on_auto_stop_in.rb
  20220111095006_add_maintainer_note_to_ci_runners.rb
  20220111095007_add_text_limit_to_ci_runners_maintainer_note.rb
  20220111101421_remove_index_on_merge_request_id.rb
  20220111102314_truncate_ci_mirror_tables.rb
  20220111154950_add_token_expires_at_to_ci_runners.rb
  20220111154951_add_index_to_ci_runners_token_expires_at.rb
  20220111200254_remove_index_from_merge_requests.rb
  20220111221516_remove_projects_ci_pending_builds_fk.rb
  20220112015940_remove_projects_ci_running_builds_fk.rb
  20220112090556_remove_cascade_delete_from_project_namespace_foreign_key.rb
  20220112115413_add_requires_verification_to_user_details.rb
  20220112205111_create_security_training_providers.rb
  20220112230642_remove_projects_ci_unit_tests_project_id_fk.rb
  20220112232037_add_member_namespace_reference.rb
  20220112232605_add_member_namespace_index.rb
  20220112232723_remove_projects_ci_daily_build_group_report_results_project_id_fk.rb
  20220113013319_remove_projects_ci_freeze_periods_project_id_fk.rb
  20220113014438_remove_projects_ci_resource_groups_project_id_fk.rb
  20220113015830_remove_projects_ci_build_report_results_project_id_fk.rb
  20220113035519_remove_users_ci_job_token_project_scope_links_added_by_id_fk.rb
  20220113040447_remove_users_ci_pipeline_schedules_owner_id_fk.rb
  20220113111440_schedule_fix_incorrect_max_seats_used.rb
  20220113125401_create_security_trainings.rb
  20220113135449_add_package_files_limit_to_application_settings.rb
  20220113135924_add_application_settings_package_files_limit_constraints.rb
  20220114105525_add_index_on_projects_path.rb
  20220114131950_add_status_only_index_to_packages_package_files.rb
  20220116175851_add_author_index_to_design_management_versions.rb
  20220117034056_remove_index_cluster_agent_tokens_on_agent_id_and_last_used_at.rb
  20220117082611_add_text_limit_to_exad_verification_tokens.rb
  20220117225936_add_text_limits_to_container_repositories_migration_columns.rb
  20220118015633_add_url_text_to_issuable_metric_images.rb
  20220118020026_add_url_text_limit_to_issuable_metric_images.rb
  20220118141950_add_text_limit_to_container_registry_import_target_plan.rb
  20220118155846_add_runner_token_expiration_interval_settings_to_application_settings.rb
  20220118155847_add_runner_token_expiration_interval_settings_to_namespace_settings.rb
  20220118155848_add_runner_token_expiration_interval_settings_to_project_settings.rb
  20220118204039_self_managed_reschedule_recalculate_vulnerability_finding_signatures_for_findings.rb
  20220119094023_add_unique_index_to_aed_verification_token.rb
  20220119094503_populate_audit_event_streaming_verification_token.rb
  20220119141407_add_dependency_proxy_size_to_namespace_statistics.rb
  20220119141736_remove_projects_ci_pipeline_artifacts_project_id_fk.rb
  20220119143130_remove_projects_ci_sources_pipelines_source_project_id_fk.rb
  20220119144253_add_dependency_proxy_size_to_namespace_root_storage_statistics.rb
  20220119144458_remove_users_ci_triggers_owner_id_fk.rb
  20220119151221_remove_merge_requests_ci_pipelines_merge_request_id_fk.rb
  20220119153706_remove_ci_pipelines_merge_trains_pipeline_id_fk.rb
  20220119154442_remove_ci_pipelines_merge_requests_head_pipeline_id_fk.rb
  20220119170426_remove_temporary_vulnerability_occurrences_deduplication_index.rb
  20220119193130_remove_ci_pipelines_dast_profiles_pipelines_ci_pipeline_id_fk.rb
  20220119201340_remove_ci_pipelines_vulnerability_statistics_latest_pipeline_id_fk.rb
  20220119203119_remove_ci_pipelines_vulnerability_occurrence_pipelines_pipeline_id_fk.rb
  20220119220620_add_scan_method_to_dast_site_profile.rb
  20220120033115_create_alert_management_alert_metric_images.rb
  20220120085655_add_ci_runner_project_index_to_runner_id_and_project_id.rb
  20220120094340_drop_position_from_security_findings.rb
  20220120123700_add_tmp_index_routes_id_for_namespaces.rb
  20220120123800_backfill_namespace_id_for_namespace_routes.rb
  20220121214752_remove_projects_ci_stages_project_id_fk.rb
  20220121214753_re_remove_projects_ci_stages_project_id_fk.rb
  20220121221651_remove_projects_ci_variables_project_id_fk.rb
  20220124130028_dedup_runner_projects.rb
  20220124145019_remove_projects_external_pull_requests_project_id_fk.rb
  20220124151456_remove_projects_ci_triggers_project_id_fk.rb
  20220124151949_remove_projects_ci_runner_projects_project_id_fk.rb
  20220124152824_remove_projects_ci_subscriptions_projects_downstream_project_id_fk.rb
  20220124153233_remove_projects_ci_job_artifacts_project_id_fk.rb
  20220124153234_re_remove_projects_ci_job_artifacts_project_id_fk.rb
  20220124180704_remove_projects_ci_builds_metadata_project_id_fk.rb
  20220124180705_re_remove_projects_ci_builds_metadata_project_id_fk.rb
  20220124184338_remove_projects_ci_subscriptions_projects_upstream_project_id_fk.rb
  20220124204046_remove_projects_ci_sources_pipelines_project_id_fk.rb
  20220124214131_remove_projects_ci_refs_project_id_fk.rb
  20220124215857_remove_projects_ci_job_token_project_scope_links_source_project_id_fk.rb
  20220124221521_remove_projects_ci_project_monthly_usages_project_id_fk.rb
  20220125083520_remove_ci_pipelines_dast_site_profiles_pipelines_ci_pipeline_id_fk.rb
  20220125084127_add_cleanup_attempts_to_loose_foreign_keys_deleted_records.rb
  20220125084348_remove_ci_pipelines_vulnerability_feedback_pipeline_id_fk.rb
  20220125122228_add_topics_non_private_projects_count.rb
  20220125122640_schedule_populate_topics_non_private_projects_count.rb
  20220125122725_add_topics_non_private_projects_count_index.rb
  20220125230538_add_compound_index_on_project_id_and_id_for_vulnerabilities.rb
  20220126201752_remove_projects_ci_job_token_project_scope_links_target_project_id_fk.rb
  20220126202654_remove_projects_ci_sources_projects_source_project_id_fk.rb
  20220126203421_remove_projects_ci_pipeline_schedules_project_id_fk.rb
  20220126210021_remove_projects_ci_builds_project_id_fk.rb
  20220126210022_re_remove_projects_ci_builds_project_id_fk.rb
  20220126210657_remove_projects_ci_pipelines_project_id_fk.rb
  20220127112243_add_index_to_merge_request_assignees_state.rb
  20220127112412_add_index_to_merge_request_reviewers_state.rb
  20220127132200_cleanup_backfill_ci_namespace_mirrors.rb
  20220127132201_cleanup_backfill_ci_project_mirrors.rb
  20220128093756_add_ecdsa_sk_and_ed25519_sk_key_restrictions_to_application_settings.rb
  20220128155251_remove_dangling_running_builds.rb
  20220128155814_fix_approval_rules_code_owners_rule_type_index.rb
  20220128194722_add_index_on_migration_state_and_import_done_at_to_container_repositories.rb
  20220131135725_add_severity_level_to_merge_requests_compliance_violations.rb
  20220131192643_add_show_diff_preview_in_email_to_project_settings.rb
  20220201034731_remove_index_clusters_kubernetes_namespaces_on_cluster_id.rb
  20220201141705_cleanup_background_migration_populate_test_reports_issue_id.rb
  20220201173212_add_user_details_provisioning_index.rb
  20220201193033_add_unique_index_to_vulnerability_finding_links_with_truncate.rb
  20220201205300_remove_index_for_vulnerability_occurrences.rb
  20220202034409_add_tmp_index_on_id_and_migration_state_to_container_repositories.rb
  20220202105733_delete_service_template_records.rb
  20220202115350_add_migration_indexes_to_container_repositories.rb
  20220203091304_fix_unique_packages_index_excluding_pending_destruction_status.rb
  20220203123333_add_batched_migration_max_batch.rb
  20220203133652_add_legacy_open_source_license_available_to_project_settings.rb
  20220204053655_remove_index_epic_issues_on_epic_id.rb
  20220204154220_add_index_on_greatest_done_at_to_container_repositories.rb
  20220207083129_add_users_get_by_id_limit_to_application_setting.rb
  20220208115439_start_backfill_ci_queuing_tables.rb
  20220208171826_update_default_scan_method_of_dast_site_profile.rb
  20220209111007_add_partial_index_for_batching_active_cluster_image_scanning_vulnerabilities.rb
  20220216214433_test_something.rb
# ./spec/spec_helper.rb:472:in `<top (required)>'
# ./spec/models/ci/instance_variable_spec.rb:3:in `require'
# ./spec/models/ci/instance_variable_spec.rb:3:in `<top (required)>'
Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}
No examples found.


Finished in 0.00005 seconds (files took 21.34 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

To recover from this error, run:

bundle exec rails db:test:prepare

See also

!78182 (comment 836841813)

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Thong Kuah

Merge request reports

Loading