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