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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
96c325eb
Commit
96c325eb
authored
Nov 22, 2018
by
Amit Rathi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unique: true on cluster_id index on cert_manager
parent
ceb867a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
db/migrate/20181101191341_create_clusters_applications_cert_manager.rb
...181101191341_create_clusters_applications_cert_manager.rb
+2
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20181101191341_create_clusters_applications_cert_manager.rb
View file @
96c325eb
...
...
@@ -7,12 +7,13 @@ class CreateClustersApplicationsCertManager < ActiveRecord::Migration
def
change
create_table
:clusters_applications_cert_managers
do
|
t
|
t
.
references
:cluster
,
null:
false
,
unique:
true
,
index:
tru
e
,
foreign_key:
{
on_delete: :cascade
}
t
.
references
:cluster
,
null:
false
,
unique:
true
,
index:
fals
e
,
foreign_key:
{
on_delete: :cascade
}
t
.
integer
:status
,
null:
false
t
.
string
:version
,
null:
false
t
.
string
:email
,
null:
false
t
.
timestamps_with_timezone
null:
false
t
.
text
:status_reason
t
.
index
:cluster_id
,
unique:
true
end
end
end
db/schema.rb
View file @
96c325eb
...
...
@@ -648,7 +648,7 @@ ActiveRecord::Schema.define(version: 20181112103239) do
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
text
"status_reason"
t
.
index
[
"cluster_id"
],
name:
"index_clusters_applications_cert_managers_on_cluster_id"
,
using: :btree
t
.
index
[
"cluster_id"
],
name:
"index_clusters_applications_cert_managers_on_cluster_id"
,
u
nique:
true
,
u
sing: :btree
end
create_table
"clusters_applications_helm"
,
force: :cascade
do
|
t
|
...
...
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