debian-mirror-gitlab/db/migrate/20191017094449_add_remove_source_branch_after_merge_to_projects.rb
2020-04-22 19:07:51 +05:30

18 lines
551 B
Ruby

# 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