debian-mirror-gitlab/db/migrate/20211119195201_create_deployment_approvals.rb
2022-01-26 12:08:38 +05:30

13 lines
415 B
Ruby

# 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