BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0b2ca23b
Unverified
Commit
0b2ca23b
authored
May 31, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve jupyter app db migrations
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
22866a28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
20180511131058_create_clusters_applications_jupyter.rb
...te/20180511131058_create_clusters_applications_jupyter.rb
+3
-3
schema.rb
db/schema.rb
+2
-0
No files found.
db/migrate/20180511131058_create_clusters_applications_jupyter.rb
View file @
0b2ca23b
...
...
@@ -9,15 +9,15 @@ class CreateClustersApplicationsJupyter < ActiveRecord::Migration
def
change
create_table
:clusters_applications_jupyter
do
|
t
|
t
.
references
:cluster
,
null:
false
,
unique:
true
,
foreign_key:
{
on_delete: :cascade
}
t
.
references
:oauth_application
t
.
references
:oauth_application
,
foreign_key:
{
on_delete: :nullify
}
t
.
integer
:status
,
null:
false
t
.
string
:version
,
null:
false
t
.
string
:hostname
t
.
text
:status_reason
t
.
timestamps_with_timezone
null:
false
t
.
text
:status_reason
end
end
end
db/schema.rb
View file @
0b2ca23b
...
...
@@ -2208,6 +2208,8 @@ ActiveRecord::Schema.define(version: 20180529093006) do
add_foreign_key
"clusters_applications_helm"
,
"clusters"
,
on_delete: :cascade
add_foreign_key
"clusters_applications_ingress"
,
"clusters"
,
name:
"fk_753a7b41c1"
,
on_delete: :cascade
add_foreign_key
"clusters_applications_prometheus"
,
"clusters"
,
name:
"fk_557e773639"
,
on_delete: :cascade
add_foreign_key
"clusters_applications_jupyter"
,
"clusters"
,
on_delete: :cascade
add_foreign_key
"clusters_applications_jupyter"
,
"oauth_applications"
,
on_delete: :nullify
add_foreign_key
"clusters_applications_runners"
,
"ci_runners"
,
column:
"runner_id"
,
name:
"fk_02de2ded36"
,
on_delete: :nullify
add_foreign_key
"clusters_applications_runners"
,
"clusters"
,
on_delete: :cascade
add_foreign_key
"container_repositories"
,
"projects"
...
...
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