From 009370fbb07dddf8ec0407a2847eeab0152f324d Mon Sep 17 00:00:00 2001 From: Kat <54268893+kosiakkatrina@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:52:02 +0000 Subject: [PATCH] Fix prefic syntax --- app/models/log.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/log.rb b/app/models/log.rb index e0d6f24f2..5a9bde77e 100644 --- a/app/models/log.rb +++ b/app/models/log.rb @@ -19,13 +19,13 @@ class Log < ApplicationRecord "deleted" => 4, }.freeze enum :status, STATUS - enum :status_cache, STATUS, _prefix: true + enum :status_cache, STATUS, prefix: true CREATION_METHOD = { "single log" => 1, "bulk upload" => 2, }.freeze - enum :creation_method, CREATION_METHOD, _prefix: true + enum :creation_method, CREATION_METHOD, prefix: true scope :visible, -> { where(status: %w[not_started in_progress completed]) } scope :exportable, -> { where(status: %w[not_started in_progress completed deleted]) }