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

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

class AddLatestColumnIntoTheSecurityScansTable < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  def up
    add_column :security_scans, :latest, :boolean, default: true, null: false
  end

  def down
    remove_column :security_scans, :latest
  end
end