diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-03 19:02:30 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-03 19:02:30 +0200 |
commit | d6fdd773b5907e654bcb8633c84227037c81bbd7 (patch) | |
tree | a66a6f6b6f6ccc27a5192f1943c2d401fe4b2f06 /db | |
parent | ada547589c8a66b936c8d197abee15994f7a1665 (diff) | |
download | gitlab-ci-d6fdd773b5907e654bcb8633c84227037c81bbd7.tar.gz |
Link build with job
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20141103162726_add_job_id_to_build.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20141103162726_add_job_id_to_build.rb b/db/migrate/20141103162726_add_job_id_to_build.rb new file mode 100644 index 0000000..b4e3020 --- /dev/null +++ b/db/migrate/20141103162726_add_job_id_to_build.rb @@ -0,0 +1,5 @@ +class AddJobIdToBuild < ActiveRecord::Migration + def change + add_column :builds, :job_id, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 500c1aa..9cd7f01 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20141103151359) do +ActiveRecord::Schema.define(version: 20141103162726) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -33,6 +33,7 @@ ActiveRecord::Schema.define(version: 20141103151359) do t.float "coverage" t.integer "commit_id" t.text "commands" + t.integer "job_id" end add_index "builds", ["commit_id"], name: "index_builds_on_commit_id", using: :btree |