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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-10 21:07:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-10 21:07:43 +0300
commit6f0f893bd87535b61e0ecb1ce069eaa7fcb9e5be (patch)
tree8af92b29c838e9af2fd70f9a4a2314a08f4af922 /db/migrate/20200107172020_add_timestamp_softwarelicensespolicy.rb
parent8b1228b0d409d7751f01d9fb72ebfbbf62399486 (diff)
Add latest changes from gitlab-org/gitlab@master
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