Add timestamp columns to geo_nodes

This commit is contained in:
Douglas Barbosa Alexandre 2019-08-06 21:42:20 -03:00
parent 95ba178dcd
commit 349f35200a
No known key found for this signature in database
GPG key ID: 4DC4A918C347CAC9
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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"