diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-10 21:07:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-10 21:07:43 +0300 |
commit | 6f0f893bd87535b61e0ecb1ce069eaa7fcb9e5be (patch) | |
tree | 8af92b29c838e9af2fd70f9a4a2314a08f4af922 /db/migrate/20200107172020_add_timestamp_softwarelicensespolicy.rb | |
parent | 8b1228b0d409d7751f01d9fb72ebfbbf62399486 (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.rb | 15 |
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 |