diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-03 15:09:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-03 15:09:52 +0300 |
commit | 546ddc3f6ac96fdf09934390a938bb391d07dc94 (patch) | |
tree | d0c92fca27ee76b5a20b7bfb56bda6f057424127 /db/migrate | |
parent | 04baa85554ff13bdd4d6f4e6bb24119d17608fee (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20200330121000_add_confidential_attribute_to_epics.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20200330121000_add_confidential_attribute_to_epics.rb b/db/migrate/20200330121000_add_confidential_attribute_to_epics.rb new file mode 100644 index 00000000000..01728436b93 --- /dev/null +++ b/db/migrate/20200330121000_add_confidential_attribute_to_epics.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddConfidentialAttributeToEpics < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default(:epics, :confidential, :boolean, default: false) + end + + def down + remove_column(:epics, :confidential) + end +end |