diff options
Diffstat (limited to 'db/migrate/20211011140931_create_ci_project_mirrors.rb')
-rw-r--r-- | db/migrate/20211011140931_create_ci_project_mirrors.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20211011140931_create_ci_project_mirrors.rb b/db/migrate/20211011140931_create_ci_project_mirrors.rb new file mode 100644 index 00000000000..2407b7e0b84 --- /dev/null +++ b/db/migrate/20211011140931_create_ci_project_mirrors.rb @@ -0,0 +1,12 @@ +# 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 |