summaryrefslogtreecommitdiff
path: root/db/migrate/20161114024742_add_coverage_regex_to_builds.rb
diff options
context:
space:
mode:
authorLeandro Camargo <leandroico@gmail.com>2016-11-14 01:56:39 -0200
committerLeandro Camargo <leandroico@gmail.com>2017-01-25 01:07:43 -0200
commit6a3d29c73d2578c7b2a40f2dfcb823b681a70f7e (patch)
tree2c7d0586b838288e31990698049fa0d97e946d62 /db/migrate/20161114024742_add_coverage_regex_to_builds.rb
parentd1d90b576ddb6558859f13118915747468f4d48a (diff)
downloadgitlab-ce-6a3d29c73d2578c7b2a40f2dfcb823b681a70f7e.tar.gz
Add ability to define a coverage regex in the .gitlab-ci.yml
* Instead of using the proposed `coverage` key, this expects `coverage_regex`
Diffstat (limited to 'db/migrate/20161114024742_add_coverage_regex_to_builds.rb')
-rw-r--r--db/migrate/20161114024742_add_coverage_regex_to_builds.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20161114024742_add_coverage_regex_to_builds.rb b/db/migrate/20161114024742_add_coverage_regex_to_builds.rb
new file mode 100644
index 00000000000..88aa5d52b39
--- /dev/null
+++ b/db/migrate/20161114024742_add_coverage_regex_to_builds.rb
@@ -0,0 +1,13 @@
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddCoverageRegexToBuilds < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def change
+ add_column :ci_builds, :coverage_regex, :string
+ end
+end