Enable rubocop for db/**/* and ee/db/**/*
This commit is contained in:
parent
068768e1f8
commit
b95da565cd
|
@ -10,9 +10,9 @@ AllCops:
|
|||
Exclude:
|
||||
- 'vendor/**/*'
|
||||
- 'node_modules/**/*'
|
||||
- 'db/**/*'
|
||||
- 'db/fixtures/**/*'
|
||||
- 'ee/db/**/*'
|
||||
- 'db/schema.rb'
|
||||
- 'ee/db/geo/schema.rb'
|
||||
- 'tmp/**/*'
|
||||
- 'bin/**/*'
|
||||
- 'generator_templates/**/*'
|
||||
|
@ -34,6 +34,8 @@ Style/MutableConstant:
|
|||
Naming/FileName:
|
||||
ExpectMatchingDefinition: true
|
||||
Exclude:
|
||||
- 'db/**/*'
|
||||
- 'ee/db/**/*'
|
||||
- 'spec/**/*'
|
||||
- 'features/**/*'
|
||||
- 'ee/spec/**/*'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class InitSchema < ActiveRecord::Migration
|
||||
DOWNTIME = true
|
||||
|
||||
# rubocop:disable Metrics/AbcSize
|
||||
def up
|
||||
create_table "broadcast_messages", force: :cascade do |t|
|
||||
t.text "message", null: false
|
||||
|
@ -157,9 +158,9 @@ class InitSchema < ActiveRecord::Migration
|
|||
add_index "notes", ["author_id"], name: "index_notes_on_author_id", using: :btree
|
||||
add_index "notes", ["commit_id"], name: "index_notes_on_commit_id", using: :btree
|
||||
add_index "notes", ["created_at"], name: "index_notes_on_created_at", using: :btree
|
||||
add_index "notes", ["noteable_id", "noteable_type"], name: "index_notes_on_noteable_id_and_noteable_type", using: :btree
|
||||
add_index "notes", %w[noteable_id noteable_type], name: "index_notes_on_noteable_id_and_noteable_type", using: :btree
|
||||
add_index "notes", ["noteable_type"], name: "index_notes_on_noteable_type", using: :btree
|
||||
add_index "notes", ["project_id", "noteable_type"], name: "index_notes_on_project_id_and_noteable_type", using: :btree
|
||||
add_index "notes", %w[project_id noteable_type], name: "index_notes_on_project_id_and_noteable_type", using: :btree
|
||||
add_index "notes", ["project_id"], name: "index_notes_on_project_id", using: :btree
|
||||
create_table "project_group_links", force: :cascade do |t|
|
||||
t.integer "project_id", null: false
|
||||
|
@ -241,7 +242,7 @@ class InitSchema < ActiveRecord::Migration
|
|||
t.datetime "created_at"
|
||||
end
|
||||
add_index "taggings", ["tag_id"], name: "index_taggings_on_tag_id", using: :btree
|
||||
add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree
|
||||
add_index "taggings", %w[taggable_id taggable_type context], name: "index_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree
|
||||
create_table "tags", force: :cascade do |t|
|
||||
t.string "name"
|
||||
end
|
||||
|
@ -292,7 +293,7 @@ class InitSchema < ActiveRecord::Migration
|
|||
add_index "users", ["authentication_token"], name: "index_users_on_authentication_token", unique: true, using: :btree
|
||||
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree
|
||||
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
|
||||
add_index "users", ["extern_uid", "provider"], name: "index_users_on_extern_uid_and_provider", unique: true, using: :btree
|
||||
add_index "users", %w[extern_uid provider], name: "index_users_on_extern_uid_and_provider", unique: true, using: :btree
|
||||
add_index "users", ["name"], name: "index_users_on_name", using: :btree
|
||||
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
|
||||
add_index "users", ["username"], name: "index_users_on_username", using: :btree
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class FixNamespaces < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
# rubocop:disable all
|
||||
require_relative 'limits_to_mysql'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class MigrateProjectTags < ActiveRecord::Migration
|
||||
def up
|
||||
ActsAsTaggableOn::Tagging.where(taggable_type: 'Project', context: 'labels').update_all(context: 'tags')
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
# In 20140914145549_migrate_to_new_members_model.rb we forgot to set the
|
||||
# created_at and updated_at times for new records in the 'members' table. This
|
||||
# became a problem after commit c8e78d972a5a628870eefca0f2ccea0199c55bda which
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddImportDataToProjectTable < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :projects, :import_type, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddHomePageUrlForApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :home_page_url, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddGitlabAccessTokenToUser < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :gitlab_access_token, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddNotificationEmailToUser < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :users, :notification_email, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AllowNullInServicesProjectId < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :services, :project_id, :integer, null: true
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddBitbucketAccessTokenAndSecretToUser < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :bitbucket_access_token, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class SetMissingLastActivityAt < ActiveRecord::Migration
|
||||
def up
|
||||
execute "UPDATE projects SET last_activity_at = updated_at WHERE last_activity_at IS NULL"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddRestrictedVisibilityLevelsToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :restricted_visibility_levels, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddLocationToUser < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :location, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class SetIncorrectAssigneeIdToNull < ActiveRecord::Migration
|
||||
def up
|
||||
execute "UPDATE issues SET assignee_id = NULL WHERE assignee_id = -1"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddImportDataToProject < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :projects, :import_data, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddDeviseTwoFactorToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :encrypted_otp_secret, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddMaxAttachmentSizeToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :max_attachment_size, :integer, default: 10, null: false
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddDeviseTwoFactorBackupableToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :otp_backup_codes, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class FixIdentities < ActiveRecord::Migration
|
||||
def up
|
||||
# Up until now, legacy 'ldap' references in the database were charitably
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class RenameBuildboxService < ActiveRecord::Migration
|
||||
def up
|
||||
execute "UPDATE services SET type = 'BuildkiteService' WHERE type = 'BuildboxService';"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class CreateProjectImportData < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :project_import_data do |t|
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddDefaultProjectVisibililtyToApplicationSettings < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :application_settings, :default_project_visibility, :integer
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
# This migration is a duplicate of 20150425164651_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
|
||||
# It shold be applied before the index additions to ensure that `name` is case sensitive.
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
# This migration comes from acts_as_taggable_on_engine (originally 4)
|
||||
class AddMissingTaggableIndex < ActiveRecord::Migration
|
||||
def self.up
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
# This migration comes from acts_as_taggable_on_engine (originally 5)
|
||||
# This migration is added to circumvent issue #623 and have special characters
|
||||
# work properly
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddDefaultSnippetVisibilityToAppSettings < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :application_settings, :default_snippet_visibility, :integer
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class RemoveAbandonedGroupMembersRecords < ActiveRecord::Migration
|
||||
def up
|
||||
execute("DELETE FROM members WHERE type = 'GroupMember' AND source_id NOT IN(\
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddRestrictedSignupDomainsToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :restricted_signup_domains, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
# Convert legacy Markdown-emphasized notes to the current, non-emphasized format
|
||||
#
|
||||
# _mentioned in 54f7727c850972f0401c1312a7c4a6a380de5666_
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddUserOauthApplicationsToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :user_oauth_applications, :bool, default: true
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddSessionExpireDelayForApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
unless column_exists?(:application_settings, :session_expire_delay)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddDefaultOtpRequiredForLoginValue < ActiveRecord::Migration
|
||||
def up
|
||||
execute %q{UPDATE users SET otp_required_for_login = FALSE WHERE otp_required_for_login IS NULL}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddUpdatedByToIssuablesAndNotes < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :notes, :updated_by_id, :integer
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddSentNotifications < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :sent_notifications do |t|
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class EnableSslVerificationByDefault < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :web_hooks, :enable_ssl_verification, :boolean, default: true
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class EnableSslVerificationForWebHooks < ActiveRecord::Migration
|
||||
def up
|
||||
execute("UPDATE web_hooks SET enable_ssl_verification = true")
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddHelpPageTextToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :help_page_text, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddCiEnabledToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :ci_enabled, :boolean, null: false, default: true
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class RemoveInvalidMilestonesFromMergeRequests < ActiveRecord::Migration
|
||||
def up
|
||||
execute("UPDATE merge_requests SET milestone_id = NULL where milestone_id NOT IN (SELECT id FROM milestones)")
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddConsumedTimestepToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :consumed_timestep, :integer
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddLineCodeToSentNotification < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :sent_notifications, :line_code, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddProjectIdToCiCommit < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :ci_commits, :gl_project_id, :integer
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class MigrateProjectIdForCiCommits < ActiveRecord::Migration
|
||||
def up
|
||||
subquery = 'SELECT gitlab_id FROM ci_projects WHERE ci_projects.id = ci_commits.project_id'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class MergeRequestErrorField < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :merge_requests, :merge_error, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddNullToNameForCiProjects < ActiveRecord::Migration
|
||||
def up
|
||||
change_column_null :ci_projects, :name, true
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddStageIdxToBuilds < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :ci_builds, :stage_idx, :integer
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddRefAndTagToBuilds < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :ci_builds, :tag, :boolean
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddUserIdToBuild < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :ci_builds, :user_id, :integer
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddAdminNotificationEmailSetting < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :admin_notification_email, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddArtifactsFileToBuilds < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :ci_builds, :artifacts_file, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class FixBuildTags < ActiveRecord::Migration
|
||||
def up
|
||||
execute("UPDATE taggings SET taggable_type='CommitStatus' WHERE taggable_type='Ci::Build'")
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class FailBuildWithoutNames < ActiveRecord::Migration
|
||||
def up
|
||||
execute("UPDATE ci_builds SET status='failed' WHERE name IS NULL AND status='pending'")
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class CiLimitsToMysql < ActiveRecord::Migration
|
||||
def change
|
||||
return unless ActiveRecord::Base.configurations[Rails.env]['adapter'] =~ /^mysql/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class FailBuildWithEmptyName < ActiveRecord::Migration
|
||||
def up
|
||||
execute("UPDATE ci_builds SET status='failed' WHERE (name IS NULL OR name='') AND status='pending'")
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
require 'fileutils'
|
||||
|
||||
class RemoveSatellites < ActiveRecord::Migration
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddSharedRunnersSetting < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :application_settings, :shared_runners_enabled, :boolean, default: true, null: false
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddFileToLfsObjects < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :lfs_objects, :file, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddMaxArtifactsSizeToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :max_artifacts_size, :integer, default: 100, null: false
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddImportErrorToProject < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :projects, :import_error, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class RaiseHookUrlLimit < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :web_hooks, :url, :string, limit: 2000
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class MigrateCiWebHooks < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class MigrateCiEmails < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddUnlockTokenToUser < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :unlock_token, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddRunnersRegistrationTokenToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :runners_registration_token, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class MigrateCiSlackService < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class MigrateCiHipChatService < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddProjectIdToCi < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :ci_builds, :gl_project_id, :integer
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class MigrateCiToProject < ActiveRecord::Migration
|
||||
def up
|
||||
migrate_project_id_for_table('ci_runner_projects')
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddTfaToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
change_table :application_settings do |t|
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddTfaAdditionalFields < ActiveRecord::Migration
|
||||
def change
|
||||
change_table :users do |t|
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
# Migration type: online without errors (works on previous version and new one)
|
||||
class RenameEmojis < ActiveRecord::Migration
|
||||
def up
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddRecaptchaToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
change_table :application_settings do |t|
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class InfluxdbUdpPortSetting < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :metrics_port, :integer, default: 8089
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddArtifactsMetadataToCiBuild < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :ci_builds, :artifacts_metadata, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddAkismetToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
change_table :application_settings do |t|
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddMetricsSampleInterval < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :metrics_sample_interval, :integer,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddSentryToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
change_table :application_settings do |t|
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddBaseCommitShaToMergeRequestDiffs < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :merge_request_diffs, :base_commit_sha, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class ChangeLfsObjectsSizeColumn < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :lfs_objects, :size, :integer, limit: 8
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class RemoveDotAtomPathEndingOfProjects < ActiveRecord::Migration
|
||||
include Gitlab::ShellAdapter
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddMergeCommitShaToMergeRequests < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :merge_requests, :merge_commit_sha, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddRealSizeToMergeRequestDiffs < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :merge_request_diffs, :real_size, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddDescriptionToLabel < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :labels, :description, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddNoteToTasks < ActiveRecord::Migration
|
||||
def change
|
||||
add_reference :tasks, :note, index: true
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class RenameTasksToTodos < ActiveRecord::Migration
|
||||
def change
|
||||
rename_table :tasks, :todos
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddMainLanguageToRepository < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :projects, :main_language, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddImportCredentialsToProjectImportData < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :project_import_data, :encrypted_credentials, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class DisallowBlankLineCodeOnNote < ActiveRecord::Migration
|
||||
def up
|
||||
execute("UPDATE notes SET line_code = NULL WHERE line_code = ''")
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class ChangeTargetIdToNullOnTodos < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_null :todos, :target_id, true
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddMovedToToIssue < ActiveRecord::Migration
|
||||
def change
|
||||
add_reference :issues, :moved_to, references: :issues
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class RemoveTodosForDeletedIssues < ActiveRecord::Migration
|
||||
def up
|
||||
execute <<-SQL
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
# This migration will create one row of NotificationSetting for each Member row
|
||||
# It can take long time on big instances.
|
||||
#
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class RemoveTodosForDeletedMergeRequests < ActiveRecord::Migration
|
||||
def up
|
||||
execute <<-SQL
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddImagesEnabledForProject < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :projects, :container_registry_enabled, :boolean
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddTokenToWebHooks < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :web_hooks, :token, :string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable Migration/Datetime
|
||||
# rubocop:disable Migration/Timestamps
|
||||
class CreatePersonalAccessTokens < ActiveRecord::Migration
|
||||
def change
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class AddSharedRunnersTextToApplicationSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :shared_runners_text, :text
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# rubocop:disable all
|
||||
class ConvertAwardNoteToEmojiAward < ActiveRecord::Migration
|
||||
disable_ddl_transaction!
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue