gitlab-org--gitlab-foss/db/migrate/20210517130723_make_snapshot_segment_id_optional.rb

11 lines
296 B
Ruby

# 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