diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-07-08 12:38:08 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-07-08 12:39:03 +0200 |
commit | 638a5f492541fa3f658b4fd3090dda624e4cf4c9 (patch) | |
tree | d152e32eb6cf97e20fd4a905b180176fedd5dc83 /db | |
parent | 52cc9a572484a87cea542448e6d439b7c6032e04 (diff) | |
download | gitlab-ci-allow-per-job-failure.tar.gz |
Allow to defined per-job allow_failure parameterallow-per-job-failure
It allows to ignore status of specific job when computed for commit
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150707134456_add_allow_failure_to_builds.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/db/migrate/20150707134456_add_allow_failure_to_builds.rb b/db/migrate/20150707134456_add_allow_failure_to_builds.rb new file mode 100644 index 0000000..cc3da34 --- /dev/null +++ b/db/migrate/20150707134456_add_allow_failure_to_builds.rb @@ -0,0 +1,5 @@ +class AddAllowFailureToBuilds < ActiveRecord::Migration + def change + add_column :builds, :allow_failure, :boolean, default: false, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index c5e59b2..6b88c7f 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: 20150706103229) do +ActiveRecord::Schema.define(version: 20150707134456) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -30,8 +30,9 @@ ActiveRecord::Schema.define(version: 20150706103229) do t.text "commands" t.integer "job_id" t.string "name" - t.boolean "deploy", default: false + t.boolean "deploy", default: false t.text "options" + t.boolean "allow_failure", default: false, null: false end add_index "builds", ["commit_id"], name: "index_builds_on_commit_id", using: :btree |