Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20210106225424_add_keep_latest_artifacts_to_application_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 884159ddedb3d5f0d828240daf7227559dc54366 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class AddKeepLatestArtifactsToApplicationSettings < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def change
    # This is named keep_latest_artifact for consistency with the project level setting but
    # turning it on keeps all (multiple) artifacts on the latest pipeline per ref
    add_column :application_settings, :keep_latest_artifact, :boolean, default: true, null: false
  end
end