Commit a0e22e85 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

add column to store the container ID of the jobs

parent 908d1dff
......@@ -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")
......
class AddContainerIdToJob < ActiveRecord::Migration[5.0]
def change
add_column :jobs, :container_id, :string, limit: 64
end
end
......@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170706162853) do
ActiveRecord::Schema.define(version: 20171031145600) 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|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment