summaryrefslogtreecommitdiff
path: root/db/migrate/20200121132641_update_timestamp_softwarelicensespolicy_not_null.rb
blob: 1da96b470ef16e380562da624efb31b58eaa5f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

class UpdateTimestampSoftwarelicensespolicyNotNull < ActiveRecord::Migration[5.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def change
    change_column_null(:software_license_policies, :created_at, false)
    change_column_null(:software_license_policies, :updated_at, false)
  end
end