Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
a0e22e85
Commit
a0e22e85
authored
Nov 14, 2017
by
BAIRE Anthony
Browse files
add column to store the container ID of the jobs
parent
908d1dff
Changes
3
Hide whitespace changes
Inline
Side-by-side
controller/database.py
View file @
a0e22e85
...
...
@@ -103,6 +103,7 @@ class Job(Base):
version
=
Column
(
String
)
exec_time
=
Column
(
Integer
)
access_token
=
Column
(
String
)
container_id
=
Column
(
String
(
64
))
webapp
=
relationship
(
"Webapp"
)
...
...
rails/db/migrate/20171031145600_add_container_id_to_job.rb
0 → 100644
View file @
a0e22e85
class
AddContainerIdToJob
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_column
:jobs
,
:container_id
,
:string
,
limit:
64
end
end
rails/db/schema.rb
View file @
a0e22e85
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017
0706162853
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017
1031145600
)
do
create_table
"datasets"
,
force: :cascade
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
do
|
t
|
t
.
string
"name"
,
null:
false
...
...
@@ -50,7 +50,8 @@ ActiveRecord::Schema.define(version: 20170706162853) do
t
.
integer
"size_generated_data"
t
.
string
"ipaddress"
t
.
string
"access_token"
t
.
integer
"state"
,
default:
0
,
null:
false
t
.
integer
"state"
,
default:
0
,
null:
false
t
.
string
"container_id"
,
limit:
64
end
create_table
"quotas"
,
force: :cascade
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
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