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

12 lines
319 B
Ruby

# frozen_string_literal: true
class CreateCiProjectMirrors < Gitlab::Database::Migration[1.0]
TABLE_NAME = :ci_project_mirrors
def change
create_table TABLE_NAME do |t|
t.integer :project_id, null: false, index: { unique: true }
t.integer :namespace_id, null: false, index: true
end
end
end