summaryrefslogtreecommitdiff
path: root/db/migrate/20190802195602_add_timestamps_columns_to_geo_nodes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20190802195602_add_timestamps_columns_to_geo_nodes.rb')
-rw-r--r--db/migrate/20190802195602_add_timestamps_columns_to_geo_nodes.rb10
1 files changed, 10 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