Skip to content

Commit

Permalink
Use the new Rails enum API
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiculescu authored and rosa committed Mar 21, 2024
1 parent 8a1613b commit 7911d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/audits1984/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Audit < Console1984::Base
belongs_to :session, class_name: "Console1984::Session", touch: true
belongs_to :auditor, class_name: Audits1984.auditor_class

enum status: %i[ pending approved flagged ]
enum :status, %i[ pending approved flagged ]

encrypts :notes
end
Expand Down

0 comments on commit 7911d69

Please sign in to comment.