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

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

class CreateDeploymentApprovals < Gitlab::Database::Migration[1.0]
  def change
    create_table :deployment_approvals do |t|
      t.bigint :deployment_id, null: false
      t.bigint :user_id, null: false, index: true
      t.timestamps_with_timezone null: false
      t.integer :status, limit: 2, null: false
      t.index [:deployment_id, :user_id], unique: true
    end
  end
end