Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
53964aca
Commit
53964aca
authored
Nov 26, 2018
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A project can have only one project_repository
parent
be778257
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
db/migrate/20181122160027_create_project_repositories.rb
db/migrate/20181122160027_create_project_repositories.rb
+1
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20181122160027_create_project_repositories.rb
View file @
53964aca
...
...
@@ -12,7 +12,7 @@ class CreateProjectRepositories < ActiveRecord::Migration[5.0]
create_table
:project_repositories
,
id: :bigserial
do
|
t
|
t
.
references
:shard
,
null:
false
,
index:
true
,
foreign_key:
{
on_delete: :restrict
}
t
.
string
:disk_path
,
null:
false
,
index:
{
unique:
true
}
t
.
references
:project
,
null:
false
,
index:
true
,
foreign_key:
{
on_delete: :cascade
}
t
.
references
:project
,
null:
false
,
index:
{
unique:
true
}
,
foreign_key:
{
on_delete: :cascade
}
end
end
end
db/schema.rb
View file @
53964aca
...
...
@@ -2154,7 +2154,7 @@ ActiveRecord::Schema.define(version: 20181126153547) do
t
.
string
"disk_path"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
index
[
"disk_path"
],
name:
"index_project_repositories_on_disk_path"
,
unique:
true
,
using: :btree
t
.
index
[
"project_id"
],
name:
"index_project_repositories_on_project_id"
,
using: :btree
t
.
index
[
"project_id"
],
name:
"index_project_repositories_on_project_id"
,
u
nique:
true
,
u
sing: :btree
t
.
index
[
"shard_id"
],
name:
"index_project_repositories_on_shard_id"
,
using: :btree
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment