2014-04-14 13:22:57 +00:00
|
|
|
class ChangeStateToAllowEmptyMergeRequestDiffs < ActiveRecord::Migration
|
|
|
|
def up
|
2014-04-14 13:24:37 +00:00
|
|
|
change_column :merge_request_diffs, :state, :string, null: true,
|
|
|
|
default: nil
|
2014-04-14 13:22:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2014-04-14 13:24:37 +00:00
|
|
|
change_column :merge_request_diffs, :state, :string, null: false,
|
|
|
|
default: 'collected'
|
2014-04-14 13:22:57 +00:00
|
|
|
end
|
|
|
|
end
|