Commit 5554eb166b5cbce0145c3f6220142856742c1ca0
1 parent
802087c9
Exists in
spb-stable
and in
3 other branches
Fixed some hound notices
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
db/migrate/20140414131055_change_state_to_allow_empty_merge_request_diffs.rb
1 | class ChangeStateToAllowEmptyMergeRequestDiffs < ActiveRecord::Migration | 1 | class ChangeStateToAllowEmptyMergeRequestDiffs < ActiveRecord::Migration |
2 | def up | 2 | def up |
3 | - change_column :merge_request_diffs, :state, :string, null: true, default: nil | 3 | + change_column :merge_request_diffs, :state, :string, null: true, |
4 | + default: nil | ||
4 | end | 5 | end |
5 | 6 | ||
6 | def down | 7 | def down |
7 | - change_column :merge_request_diffs, :state, :string, null: false, default: "collected" | 8 | + change_column :merge_request_diffs, :state, :string, null: false, |
9 | + default: 'collected' | ||
8 | end | 10 | end |
9 | end | 11 | end |