Skip to content

Commit

Permalink
Fix prefic syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kosiakkatrina committed Dec 9, 2024
1 parent a87acb4 commit 8d86634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]) }
Expand Down

0 comments on commit 8d86634

Please sign in to comment.