Bump gems
- apipie-rails - brakeman - byebug - rubocop - turbolinks - skylight - chartkick - devise - dotenv-rails - uglifier - web-console - font-awesome-rails - pg - deep_cloneable - delayed_job_active_record
This commit is contained in:
parent
6d8497388b
commit
09e0144f30
3 changed files with 30 additions and 27 deletions
|
@ -16,7 +16,7 @@ class FindDubiousProceduresJob < ApplicationJob
|
|||
# https://www.postgresql.org/docs/current/static/functions-matching.html#FUNCTIONS-POSIX-REGEXP
|
||||
forbidden_tdcs = TypeDeChamp
|
||||
.joins(:procedure)
|
||||
.where("unaccent(types_de_champ.libelle) ~* unaccent('#{forbidden_regexp}')")
|
||||
.where("unaccent(types_de_champ.libelle) ~* unaccent(?)", forbidden_regexp)
|
||||
.where(type_champ: %w(text textarea))
|
||||
.where(procedures: { archived_at: nil, whitelisted_at: nil })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue