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

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

class TimestampForSbomSourcePackages < Gitlab::Database::Migration[2.2]
  milestone '16.9'

  def up
    add_timestamps_with_timezone(:sbom_source_packages, null: false, default: -> { 'NOW()' })
  end

  def down
    remove_timestamps(:sbom_source_packages)
  end
end