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

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

class MakeSnapshotSegmentIdOptional < ActiveRecord::Migration[6.0]
  def up
    change_column_null(:analytics_devops_adoption_snapshots, :segment_id, true)
  end

  def down
    change_column_null(:analytics_devops_adoption_snapshots, :segment_id, false)
  end
end