Satisfy the new rubocop :)

This commit is contained in:
Douwe Maan 2017-02-08 18:12:16 -06:00
parent b0afed1aac
commit 63c5b541a3
2 changed files with 10 additions and 2 deletions

View file

@ -3,7 +3,11 @@ class AddDevelopersCanMergeToProtectedBranches < ActiveRecord::Migration
disable_ddl_transaction! disable_ddl_transaction!
def change def up
add_column_with_default :protected_branches, :developers_can_merge, :boolean, default: false, allow_null: false add_column_with_default :protected_branches, :developers_can_merge, :boolean, default: false, allow_null: false
end end
def down
remove_column :protected_branches, :developers_can_merge
end
end end

View file

@ -14,7 +14,11 @@ class AddSubmittedAsHamToSpamLogs < ActiveRecord::Migration
disable_ddl_transaction! disable_ddl_transaction!
def change def up
add_column_with_default :spam_logs, :submitted_as_ham, :boolean, default: false add_column_with_default :spam_logs, :submitted_as_ham, :boolean, default: false
end end
def down
remove_column :spam_logs, :submitted_as_ham
end
end end