working on image feature
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
class MaintenanceEntry < ApplicationRecord
|
||||
include EntryImageValidation
|
||||
|
||||
belongs_to :vehicle
|
||||
belongs_to :updated_by_user, class_name: "User"
|
||||
has_many_attached :images
|
||||
|
||||
validates :name, :notes, :date, presence: true
|
||||
validates :odometer, presence: true, numericality: { only_integer: true, greater_than_or_equal_to: 0 }
|
||||
|
||||
Reference in New Issue
Block a user