debian-mirror-gitlab/db/migrate/20210517130723_make_snapshot_segment_id_optional.rb
2021-09-04 02:52:04 +05:30

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