20171230123729_add_rebase_commit_sha_to_merge_requests_ce.rb 386 Bytes
Newer Older
1
class AddRebaseCommitShaToMergeRequestsCe < ActiveRecord::Migration[4.2]
2 3 4 5 6 7 8 9 10 11 12 13 14 15
  DOWNTIME = false

  def up
    unless column_exists?(:merge_requests, :rebase_commit_sha)
      add_column :merge_requests, :rebase_commit_sha, :string
    end
  end

  def down
    if column_exists?(:merge_requests, :rebase_commit_sha)
      remove_column :merge_requests, :rebase_commit_sha
    end
  end
end