Browse Source

Make bike color not required

denney-fix-saving-dates
Jason Denney 11 years ago
parent
commit
83a4e4e9c1
  1. 2
      app/models/bike.rb

2
app/models/bike.rb

@ -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…
Cancel
Save