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!
def change
def up
add_column_with_default :protected_branches, :developers_can_merge, :boolean, default: false, allow_null: false
end
def down
remove_column :protected_branches, :developers_can_merge
end
end

View File

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