Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20201022094845_add_historical_data_recorded_at.rb')
-rw-r--r--db/migrate/20201022094845_add_historical_data_recorded_at.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20201022094845_add_historical_data_recorded_at.rb b/db/migrate/20201022094845_add_historical_data_recorded_at.rb
new file mode 100644
index 00000000000..c90889e2d38
--- /dev/null
+++ b/db/migrate/20201022094845_add_historical_data_recorded_at.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class AddHistoricalDataRecordedAt < ActiveRecord::Migration[6.0]
+ DOWNTIME = false
+
+ def up
+ add_column(:historical_data, :recorded_at, :timestamptz)
+ end
+
+ def down
+ remove_column(:historical_data, :recorded_at)
+ end
+end