mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to db/*
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user