summaryrefslogtreecommitdiff
path: root/db/migrate/20191017094449_add_remove_source_branch_after_merge_to_projects.rb
blob: d4f84b066a3b0fbb16c38d1e1b7e7a234c2230c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

class AddRemoveSourceBranchAfterMergeToProjects < ActiveRecord::Migration[5.1]
  # Set this constant to true if this migration requires downtime.
  DOWNTIME = false

  def up
    add_column :projects, :remove_source_branch_after_merge, :boolean # rubocop:disable Migration/AddColumnsToWideTables
  end

  def down
    remove_column :projects, :remove_source_branch_after_merge
  end
end