From 349f35200a9c3954ca1fa0a5baa71c1be42189dd Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Tue, 6 Aug 2019 21:42:20 -0300 Subject: Add timestamp columns to geo_nodes --- .../20190802195602_add_timestamps_columns_to_geo_nodes.rb | 10 ++++++++++ db/schema.rb | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 db/migrate/20190802195602_add_timestamps_columns_to_geo_nodes.rb 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" -- cgit v1.2.1