summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-08-06 21:42:20 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-08-08 11:29:35 -0300
commit349f35200a9c3954ca1fa0a5baa71c1be42189dd (patch)
treef21c2cd8c494e5358945e8e62763d961a604aa3c /db
parent95ba178dcdf16bd3f8c4f07cb2efa2b81b2913d1 (diff)
downloadgitlab-ce-349f35200a9c3954ca1fa0a5baa71c1be42189dd.tar.gz
Add timestamp columns to geo_nodes
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190802195602_add_timestamps_columns_to_geo_nodes.rb10
-rw-r--r--db/schema.rb2
2 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20190802195602_add_timestamps_columns_to_geo_nodes.rb b/db/migrate/20190802195602_add_timestamps_columns_to_geo_nodes.rb
new file mode 100644
index 00000000000..b95d9037afe
--- /dev/null
+++ b/db/migrate/20190802195602_add_timestamps_columns_to_geo_nodes.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class AddTimestampsColumnsToGeoNodes < ActiveRecord::Migration[5.2]
+ DOWNTIME = false
+
+ def change
+ add_column(:geo_nodes, :created_at, :datetime_with_timezone, null: true)
+ add_column(:geo_nodes, :updated_at, :datetime_with_timezone, null: true)
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 890f4ab4d8a..0e4a3d07fdd 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1450,6 +1450,8 @@ ActiveRecord::Schema.define(version: 2019_08_02_235445) do
t.string "internal_url"
t.string "name", null: false
t.integer "container_repositories_max_capacity", default: 10, null: false
+ t.datetime_with_timezone "created_at"
+ t.datetime_with_timezone "updated_at"
t.index ["access_key"], name: "index_geo_nodes_on_access_key"
t.index ["name"], name: "index_geo_nodes_on_name", unique: true
t.index ["primary"], name: "index_geo_nodes_on_primary"