Commit 63c5b541 authored by Douwe Maan's avatar Douwe Maan

Satisfy the new rubocop :)

parent b0afed1a
...@@ -3,7 +3,11 @@ class AddDevelopersCanMergeToProtectedBranches < ActiveRecord::Migration ...@@ -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
...@@ -14,7 +14,11 @@ class AddSubmittedAsHamToSpamLogs < ActiveRecord::Migration ...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment