DEV: Apply syntax_tree formatting to db/*

This commit is contained in:
David Taylor
2023-01-09 11:59:41 +00:00
parent cb932d6ee1
commit b0fda61a8e
467 changed files with 1682 additions and 1624 deletions

View File

@@ -2,7 +2,12 @@
class RequireReviewableScores < ActiveRecord::Migration[5.2]
def up
min_score = DB.query_single("SELECT value FROM site_settings WHERE name = 'min_score_default_visibility'")[0].to_f
min_score =
DB.query_single(
"SELECT value FROM site_settings WHERE name = 'min_score_default_visibility'",
)[
0
].to_f
min_score = 1.0 if (min_score < 1.0)
execute(<<~SQL)