Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20140414131055_change_state_to_allow_empty_merge_request_diffs.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1f6d85d5f66ce0d0773d4bac461b0dcf50fe5310 (plain)
1
2
3
4
5
6
7
8
9
10
11
class ChangeStateToAllowEmptyMergeRequestDiffs < ActiveRecord::Migration
  def up
    change_column :merge_request_diffs, :state, :string, null: true,
                  default: nil
  end

  def down
    change_column :merge_request_diffs, :state, :string, null: false,
                  default: 'collected'
  end
end