move to new db exec pattern
This commit is contained in:
parent
65a97686f3
commit
9aeb9df26f
|
@ -44,7 +44,12 @@ after_initialize do
|
|||
p.user_id IS NOT NULL
|
||||
SQL
|
||||
|
||||
UserAction.exec_sql(sql, solved: UserAction::SOLVED)
|
||||
# TODO post discourse 2.1 remove
|
||||
if defined? DB
|
||||
DB.exec(sql, solved: UserAction::SOLVED)
|
||||
else
|
||||
UserAction.exec_sql(sql, solved: UserAction::SOLVED)
|
||||
end
|
||||
end
|
||||
$redis.set("solved_already_upgraded", "true")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue