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
Léo-Paul Géneau
gitlab-ce
Commits
0b2ca23b
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
db/migrate/20180511131058_create_clusters_applications_jupyter.rb
...te/20180511131058_create_clusters_applications_jupyter.rb
+3
-3
db/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
...
@@ -9,15 +9,15 @@ class CreateClustersApplicationsJupyter < ActiveRecord::Migration
def
change
def
change
create_table
:clusters_applications_jupyter
do
|
t
|
create_table
:clusters_applications_jupyter
do
|
t
|
t
.
references
:cluster
,
null:
false
,
unique:
true
,
foreign_key:
{
on_delete: :cascade
}
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
.
integer
:status
,
null:
false
t
.
string
:version
,
null:
false
t
.
string
:version
,
null:
false
t
.
string
:hostname
t
.
string
:hostname
t
.
text
:status_reason
t
.
timestamps_with_timezone
null:
false
t
.
timestamps_with_timezone
null:
false
t
.
text
:status_reason
end
end
end
end
end
end
db/schema.rb
View file @
0b2ca23b
...
@@ -2208,6 +2208,8 @@ ActiveRecord::Schema.define(version: 20180529093006) do
...
@@ -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_helm"
,
"clusters"
,
on_delete: :cascade
add_foreign_key
"clusters_applications_ingress"
,
"clusters"
,
name:
"fk_753a7b41c1"
,
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_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"
,
"ci_runners"
,
column:
"runner_id"
,
name:
"fk_02de2ded36"
,
on_delete: :nullify
add_foreign_key
"clusters_applications_runners"
,
"clusters"
,
on_delete: :cascade
add_foreign_key
"clusters_applications_runners"
,
"clusters"
,
on_delete: :cascade
add_foreign_key
"container_repositories"
,
"projects"
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