Commit 89e33962 authored by Markus Koller's avatar Markus Koller

Fix Style/FrozenStringLiteralComment violations in db, ee/db

Auto-corrected with Rubocop
parent 9210aaf0
...@@ -2757,55 +2757,6 @@ Style/FrozenStringLiteralComment: ...@@ -2757,55 +2757,6 @@ Style/FrozenStringLiteralComment:
- 'config/spring.rb' - 'config/spring.rb'
- 'danger/changes_size/Dangerfile' - 'danger/changes_size/Dangerfile'
- 'danger/metadata/Dangerfile' - 'danger/metadata/Dangerfile'
- 'db/migrate/20190325080727_truncate_user_fullname.rb'
- 'db/migrate/20190828110802_add_not_null_constraints_to_prometheus_metrics_y_label_and_unit.rb'
- 'db/migrate/20190828172831_create_package_tag.rb'
- 'db/migrate/20191003195218_add_pendo_enabled_to_application_settings.rb'
- 'db/migrate/20191003195620_add_pendo_url_to_application_settings.rb'
- 'db/migrate/20191120200015_add_index_to_grafana_integrations.rb'
- 'db/migrate/20200229171700_create_custom_emojis.rb'
- 'db/migrate/20201004163918_remove_project_id_and_id_index_from_vulnerabilities_table.rb'
- 'db/migrate/20201214000000_change_mr_allow_maintainer_to_push_default.rb'
- 'db/optional_migrations/composite_primary_keys.rb'
- 'db/post_migrate/20190214112022_schedule_sync_issuables_state_id.rb'
- 'db/post_migrate/20201030121314_schedule_update_existing_users_that_require_two_factor_auth.rb'
- 'ee/db/fixtures/development/20_burndown.rb'
- 'ee/db/fixtures/development/20_vulnerabilities.rb'
- 'ee/db/fixtures/development/22_epics.rb'
- 'ee/db/geo/migrate/20170206203234_create_project_registry.rb'
- 'ee/db/geo/migrate/20170223033541_create_file_registry.rb'
- 'ee/db/geo/migrate/20170302005747_add_index_to_project_id_on_project_registry.rb'
- 'ee/db/geo/migrate/20170526214010_convert_file_bytes_to_int64.rb'
- 'ee/db/geo/migrate/20170605154253_create_event_log_state.rb'
- 'ee/db/geo/migrate/20170606155045_add_needs_resync_to_project_registry.rb'
- 'ee/db/geo/migrate/20170614201943_add_last_wiki_synced_at_to_project_registry.rb'
- 'ee/db/geo/migrate/20170627195211_add_index_to_project_registry.rb'
- 'ee/db/geo/migrate/20170906174622_remove_duplicates_from_project_registry.rb'
- 'ee/db/geo/migrate/20170906182752_add_unique_index_to_project_id_on_project_registry.rb'
- 'ee/db/geo/migrate/20171005045404_remove_file_uploads_from_registry.rb'
- 'ee/db/geo/migrate/20171009162208_add_file_registry_success.rb'
- 'ee/db/geo/migrate/20171009162209_add_file_registry_success_index.rb'
- 'ee/db/geo/migrate/20171101105200_add_retry_count_fields_to_registries.rb'
- 'ee/db/geo/migrate/20171115143841_add_last_sync_failure_to_project_registry.rb'
- 'ee/db/geo/migrate/20180201154345_add_repository_verification_to_project_registry.rb'
- 'ee/db/geo/migrate/20180314175612_add_partial_index_to_project_registy_verification_failure_columns.rb'
- 'ee/db/geo/migrate/20180315222132_add_partial_index_to_project_registy_checksum_columns.rb'
- 'ee/db/geo/migrate/20180321144947_change_repository_verification_checksum_to_sha.rb'
- 'ee/db/geo/migrate/20180322062741_migrate_ci_job_artifacts_to_separate_registry.rb'
- 'ee/db/geo/migrate/20180323182105_add_missing_on_primary_to_file_registry.rb'
- 'ee/db/geo/migrate/20180327071612_add_partial_index_to_project_registy_checksum_sha_columns.rb'
- 'ee/db/geo/migrate/20180402170913_add_missing_on_primary_to_job_artifact_registry..rb'
- 'ee/db/geo/migrate/20180405074130_add_partial_index_project_repository_verification.rb'
- 'ee/db/geo/migrate/20180412213305_add_index_to_artifact_id_on_job_artifact_registry.rb'
- 'ee/db/geo/migrate/20180419174834_add_checksum_mismatch_fields_to_project_registry.rb'
- 'ee/db/geo/migrate/20180419192603_add_indexes_to_checksum_mismatch_fields_on_project_registry.rb'
- 'ee/db/geo/migrate/20180427114641_add_repository_check_to_geo_project_registry.rb'
- 'ee/db/geo/migrate/20180510223634_set_resync_flag_for_retried_projects.rb'
- 'ee/db/geo/migrate/20180613184349_add_resync_was_scheduled_at_to_project_registry.rb'
- 'ee/db/geo/post_migrate/20180320011914_remove_last_verification_failed_columns_from_geo_project_registry.rb'
- 'ee/db/geo/post_migrate/20180320013929_remove_last_verification_at_columns_from_geo_project_registry.rb'
- 'ee/db/geo/post_migrate/20180326171626_remove_old_repository_verification_checksum_from_geo_project_registry.rb'
- 'ee/db/geo/post_migrate/20180331055706_delete_job_artifacts_from_file_registry.rb'
- 'ee/lib/tasks/geo.rake' - 'ee/lib/tasks/geo.rake'
- 'ee/lib/tasks/geo/git.rake' - 'ee/lib/tasks/geo/git.rake'
- 'ee/lib/tasks/geo/replication.rake' - 'ee/lib/tasks/geo/replication.rake'
......
# frozen_string_literal: true
# rubocop:disable Migration/UpdateLargeTable # rubocop:disable Migration/UpdateLargeTable
class TruncateUserFullname < ActiveRecord::Migration[5.0] class TruncateUserFullname < ActiveRecord::Migration[5.0]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddNotNullConstraintsToPrometheusMetricsYLabelAndUnit < ActiveRecord::Migration[5.2] class AddNotNullConstraintsToPrometheusMetricsYLabelAndUnit < ActiveRecord::Migration[5.2]
DOWNTIME = false DOWNTIME = false
......
# frozen_string_literal: true
# frozen_string_literal: true . # frozen_string_literal: true .
class CreatePackageTag < ActiveRecord::Migration[5.2] class CreatePackageTag < ActiveRecord::Migration[5.2]
......
# frozen_string_literal: true
class AddPendoEnabledToApplicationSettings < ActiveRecord::Migration[5.2] class AddPendoEnabledToApplicationSettings < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddPendoUrlToApplicationSettings < ActiveRecord::Migration[5.2] class AddPendoUrlToApplicationSettings < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddIndexToGrafanaIntegrations < ActiveRecord::Migration[5.2] class AddIndexToGrafanaIntegrations < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class CreateCustomEmojis < ActiveRecord::Migration[5.2] class CreateCustomEmojis < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
DOWNTIME = false DOWNTIME = false
......
# frozen_string_literal: true
class RemoveProjectIdAndIdIndexFromVulnerabilitiesTable < ActiveRecord::Migration[6.0] class RemoveProjectIdAndIdIndexFromVulnerabilitiesTable < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class ChangeMrAllowMaintainerToPushDefault < ActiveRecord::Migration[6.0] class ChangeMrAllowMaintainerToPushDefault < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
# This migration adds a primary key constraint to tables # This migration adds a primary key constraint to tables
# that only have a composite unique key. # that only have a composite unique key.
# #
......
# frozen_string_literal: true
class ScheduleSyncIssuablesStateId < ActiveRecord::Migration[5.0] class ScheduleSyncIssuablesStateId < ActiveRecord::Migration[5.0]
# This migration schedules the sync of state_id for issues and merge requests # This migration schedules the sync of state_id for issues and merge requests
# which are converting the state column from string to integer. # which are converting the state column from string to integer.
......
# frozen_string_literal: true
# # frozen_string_literal: true # # frozen_string_literal: true
class ScheduleUpdateExistingUsersThatRequireTwoFactorAuth < ActiveRecord::Migration[6.0] class ScheduleUpdateExistingUsersThatRequireTwoFactorAuth < ActiveRecord::Migration[6.0]
......
# frozen_string_literal: true
require './spec/support/sidekiq_middleware' require './spec/support/sidekiq_middleware'
require './spec/support/helpers/test_env' require './spec/support/helpers/test_env'
......
# frozen_string_literal: true
require './spec/support/sidekiq_middleware' require './spec/support/sidekiq_middleware'
class Gitlab::Seeder::Vulnerabilities class Gitlab::Seeder::Vulnerabilities
......
# frozen_string_literal: true
Gitlab::Seeder.quiet do Gitlab::Seeder.quiet do
Group.all.each do |group| Group.all.each do |group|
5.times do 5.times do
......
# frozen_string_literal: true
class CreateProjectRegistry < ActiveRecord::Migration[4.2] class CreateProjectRegistry < ActiveRecord::Migration[4.2]
def change def change
create_table :project_registry do |t| create_table :project_registry do |t|
......
# frozen_string_literal: true
class CreateFileRegistry < ActiveRecord::Migration[4.2] class CreateFileRegistry < ActiveRecord::Migration[4.2]
# rubocop:disable Migration/PreventStrings # rubocop:disable Migration/PreventStrings
def change def change
......
# frozen_string_literal: true
class AddIndexToProjectIdOnProjectRegistry < ActiveRecord::Migration[4.2] class AddIndexToProjectIdOnProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class ConvertFileBytesToInt64 < ActiveRecord::Migration[4.2] class ConvertFileBytesToInt64 < ActiveRecord::Migration[4.2]
def change def change
change_column :file_registry, :bytes, :integer, limit: 8 change_column :file_registry, :bytes, :integer, limit: 8
......
# frozen_string_literal: true
class CreateEventLogState < ActiveRecord::Migration[4.2] class CreateEventLogState < ActiveRecord::Migration[4.2]
def change def change
create_table :event_log_states, id: false do |t| create_table :event_log_states, id: false do |t|
......
# frozen_string_literal: true
class AddNeedsResyncToProjectRegistry < ActiveRecord::Migration[4.2] class AddNeedsResyncToProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddLastWikiSyncedAtToProjectRegistry < ActiveRecord::Migration[4.2] class AddLastWikiSyncedAtToProjectRegistry < ActiveRecord::Migration[4.2]
DOWNTIME = false DOWNTIME = false
......
# frozen_string_literal: true
class AddIndexToProjectRegistry < ActiveRecord::Migration[4.2] class AddIndexToProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class RemoveDuplicatesFromProjectRegistry < ActiveRecord::Migration[4.2] class RemoveDuplicatesFromProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddUniqueIndexToProjectIdOnProjectRegistry < ActiveRecord::Migration[4.2] class AddUniqueIndexToProjectIdOnProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class RemoveFileUploadsFromRegistry < ActiveRecord::Migration[4.2] class RemoveFileUploadsFromRegistry < ActiveRecord::Migration[4.2]
# Previous to GitLab 10.1, GitLab would save attachments/avatars to the # Previous to GitLab 10.1, GitLab would save attachments/avatars to the
# wrong directory (/var/opt/gitlab/gitlab-rails/working). Destroy these # wrong directory (/var/opt/gitlab/gitlab-rails/working). Destroy these
......
# frozen_string_literal: true
class AddFileRegistrySuccess < ActiveRecord::Migration[4.2] class AddFileRegistrySuccess < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddFileRegistrySuccessIndex < ActiveRecord::Migration[4.2] class AddFileRegistrySuccessIndex < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddRetryCountFieldsToRegistries < ActiveRecord::Migration[4.2] class AddRetryCountFieldsToRegistries < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddLastSyncFailureToProjectRegistry < ActiveRecord::Migration[4.2] class AddLastSyncFailureToProjectRegistry < ActiveRecord::Migration[4.2]
DOWNTIME = false DOWNTIME = false
......
# frozen_string_literal: true
class AddRepositoryVerificationToProjectRegistry < ActiveRecord::Migration[4.2] class AddRepositoryVerificationToProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddPartialIndexToProjectRegistyVerificationFailureColumns < ActiveRecord::Migration[4.2] class AddPartialIndexToProjectRegistyVerificationFailureColumns < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddPartialIndexToProjectRegistyChecksumColumns < ActiveRecord::Migration[4.2] class AddPartialIndexToProjectRegistyChecksumColumns < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class ChangeRepositoryVerificationChecksumToSha < ActiveRecord::Migration[4.2] class ChangeRepositoryVerificationChecksumToSha < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class MigrateCiJobArtifactsToSeparateRegistry < ActiveRecord::Migration[4.2] class MigrateCiJobArtifactsToSeparateRegistry < ActiveRecord::Migration[4.2]
def up def up
tracking_db.create_table :job_artifact_registry, force: :cascade do |t| tracking_db.create_table :job_artifact_registry, force: :cascade do |t|
......
# frozen_string_literal: true
class AddMissingOnPrimaryToFileRegistry < ActiveRecord::Migration[4.2] class AddMissingOnPrimaryToFileRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddPartialIndexToProjectRegistyChecksumShaColumns < ActiveRecord::Migration[4.2] class AddPartialIndexToProjectRegistyChecksumShaColumns < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddMissingOnPrimaryToJobArtifactRegistry < ActiveRecord::Migration[4.2] class AddMissingOnPrimaryToJobArtifactRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddPartialIndexProjectRepositoryVerification < ActiveRecord::Migration[4.2] class AddPartialIndexProjectRepositoryVerification < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddIndexToArtifactIdOnJobArtifactRegistry < ActiveRecord::Migration[4.2] class AddIndexToArtifactIdOnJobArtifactRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddChecksumMismatchFieldsToProjectRegistry < ActiveRecord::Migration[4.2] class AddChecksumMismatchFieldsToProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class AddIndexesToChecksumMismatchFieldsOnProjectRegistry < ActiveRecord::Migration[4.2] class AddIndexesToChecksumMismatchFieldsOnProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html # See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab. # for more information on how to write migrations for GitLab.
......
# frozen_string_literal: true
class SetResyncFlagForRetriedProjects < ActiveRecord::Migration[4.2] class SetResyncFlagForRetriedProjects < ActiveRecord::Migration[4.2]
def up def up
execute <<-SQL execute <<-SQL
......
# frozen_string_literal: true
class AddResyncWasScheduledAtToProjectRegistry < ActiveRecord::Migration[4.2] class AddResyncWasScheduledAtToProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
......
# frozen_string_literal: true
class RemoveLastVerificationFailedColumnsFromGeoProjectRegistry < ActiveRecord::Migration[4.2] class RemoveLastVerificationFailedColumnsFromGeoProjectRegistry < ActiveRecord::Migration[4.2]
DOWNTIME = false DOWNTIME = false
......
# frozen_string_literal: true
class RemoveLastVerificationAtColumnsFromGeoProjectRegistry < ActiveRecord::Migration[4.2] class RemoveLastVerificationAtColumnsFromGeoProjectRegistry < ActiveRecord::Migration[4.2]
DOWNTIME = false DOWNTIME = false
......
# frozen_string_literal: true
class RemoveOldRepositoryVerificationChecksumFromGeoProjectRegistry < ActiveRecord::Migration[4.2] class RemoveOldRepositoryVerificationChecksumFromGeoProjectRegistry < ActiveRecord::Migration[4.2]
DOWNTIME = false DOWNTIME = false
......
# frozen_string_literal: true
class DeleteJobArtifactsFromFileRegistry < ActiveRecord::Migration[4.2] class DeleteJobArtifactsFromFileRegistry < ActiveRecord::Migration[4.2]
def up def up
execute("DELETE FROM file_registry WHERE file_type = 'job_artifact'") execute("DELETE FROM file_registry WHERE file_type = 'job_artifact'")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment