mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | add time_spent field to bikes
This commit is contained in:
@@ -5,6 +5,7 @@ class Bike < ActiveRecord::Base
|
||||
validates :bike_type, presence: true
|
||||
validates :color, presence: true
|
||||
validates :serial_number, presence: true
|
||||
validates_numericality_of :time_spent, greater_than_or_equal_to: 0, allow_nil: true
|
||||
has_one :client
|
||||
|
||||
FREECYCLERY = "Freecyclery"
|
||||
|
||||
Reference in New Issue
Block a user