We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a00da48 commit 81501edCopy full SHA for 81501ed
app/models/import_report.rb
@@ -3,7 +3,7 @@ class ImportReport < ApplicationRecord
3
4
validates :import_type, presence: true
5
6
- enum status: { pending: "pending", completed: "completed", failed: "failed" }
+ enum :status, { pending: "pending", completed: "completed", failed: "failed" }
7
8
scope :recent, -> { order(created_at: :desc) }
9
scope :by_type, ->(type) { where(import_type: type) }
0 commit comments