debian-mirror-gitlab/db/migrate/20210106225424_add_keep_latest_artifacts_to_application_settings.rb
2021-03-11 19:13:27 +05:30

12 lines
427 B
Ruby

# 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