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/20200107172020_add_timestamp_softwarelicensespolicy.rb')
-rw-r--r--db/migrate/20200107172020_add_timestamp_softwarelicensespolicy.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20200107172020_add_timestamp_softwarelicensespolicy.rb b/db/migrate/20200107172020_add_timestamp_softwarelicensespolicy.rb
new file mode 100644
index 00000000000..0d62f3051ce
--- /dev/null
+++ b/db/migrate/20200107172020_add_timestamp_softwarelicensespolicy.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddTimestampSoftwarelicensespolicy < ActiveRecord::Migration[5.2]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def up
+ add_timestamps_with_timezone(:software_license_policies, null: true)
+ end
+
+ def down
+ remove_timestamps(:software_license_policies)
+ end
+end