diff options
author | Ashley Dumaine <adumaine@datto.com> | 2017-09-02 01:39:22 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-09-06 12:07:47 +0300 |
commit | a3f76b76a4b8db85c6fa557a5e801dcea7195735 (patch) | |
tree | 730f99b9e673ed511a41113cd713ed39702c839f /db/migrate/20170825154015_resolve_outdated_diff_discussions.rb | |
parent | 959e6d221d6b11c64d17fc9d4734200806c293ab (diff) |
change collapse to resolve and comments to discussions
Diffstat (limited to 'db/migrate/20170825154015_resolve_outdated_diff_discussions.rb')
-rw-r--r-- | db/migrate/20170825154015_resolve_outdated_diff_discussions.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20170825154015_resolve_outdated_diff_discussions.rb b/db/migrate/20170825154015_resolve_outdated_diff_discussions.rb new file mode 100644 index 00000000000..8ee474e908e --- /dev/null +++ b/db/migrate/20170825154015_resolve_outdated_diff_discussions.rb @@ -0,0 +1,17 @@ +class CollapseOutdatedDiffComments < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + disable_ddl_transaction! + + def up + add_column_with_default(:projects, + :resolve_outdated_diff_discussions, + :boolean, + default: false) + end + + def down + remove_column(:projects, :resolve_outdated_diff_discussions) + end +end |