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

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

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

  DOWNTIME = false

  def up
    change_column_null :design_management_versions, :created_at, false, Time.now.to_s(:db)
  end

  def down
    change_column_null :design_management_versions, :created_at, true
  end
end