summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2019-06-12 18:36:54 +0000
committerMayra Cabrera <mcabrera@gitlab.com>2019-06-12 18:36:54 +0000
commit2c2abf0b8a96ff4d193b872a025497515ce6837c (patch)
treea05fcaf1e7068a8b9a3cf02283af285379904088 /db
parent1b42447e26a570fad56e2da9e75df535e3f37426 (diff)
downloadgitlab-ce-2c2abf0b8a96ff4d193b872a025497515ce6837c.tar.gz
Backport of gitlab-ee!13735
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190606014128_add_last_ci_minutes_notification_at_to_namespaces.rb12
-rw-r--r--db/schema.rb1
2 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20190606014128_add_last_ci_minutes_notification_at_to_namespaces.rb b/db/migrate/20190606014128_add_last_ci_minutes_notification_at_to_namespaces.rb
new file mode 100644
index 00000000000..c264a23cda0
--- /dev/null
+++ b/db/migrate/20190606014128_add_last_ci_minutes_notification_at_to_namespaces.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddLastCiMinutesNotificationAtToNamespaces < ActiveRecord::Migration[5.1]
+ DOWNTIME = false
+
+ def change
+ add_column :namespaces, :last_ci_minutes_notification_at, :datetime_with_timezone
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index c57a73c66da..392edf89430 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1440,6 +1440,7 @@ ActiveRecord::Schema.define(version: 20190611161641) do
t.string "runners_token_encrypted"
t.integer "project_creation_level"
t.boolean "auto_devops_enabled"
+ t.datetime_with_timezone "last_ci_minutes_notification_at"
t.index ["created_at"], name: "index_namespaces_on_created_at", using: :btree
t.index ["name", "parent_id"], name: "index_namespaces_on_name_and_parent_id", unique: true, using: :btree
t.index ["name"], name: "index_namespaces_on_name_trigram", using: :gin, opclasses: {"name"=>"gin_trgm_ops"}