mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05:00
Make bike color not required
This commit is contained in:
parent
f17eba810e
commit
83a4e4e9c1
@ -17,7 +17,7 @@ class Bike < ActiveRecord::Base
|
|||||||
validates :serial_number, :length => { :minimum => 3 }
|
validates :serial_number, :length => { :minimum => 3 }
|
||||||
validates :model, :length => { :maximum => 50 }
|
validates :model, :length => { :maximum => 50 }
|
||||||
validates :bike_brand_id, :presence => true
|
validates :bike_brand_id, :presence => true
|
||||||
validates :color, :presence => true
|
#validates :color, :presence => true
|
||||||
validates :bike_style_id, :presence => true
|
validates :bike_style_id, :presence => true
|
||||||
validates :seat_tube_height, :presence => true
|
validates :seat_tube_height, :presence => true
|
||||||
validates :bike_wheel_size_id, :presence => true
|
validates :bike_wheel_size_id, :presence => true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user