mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
Louis | Remove failing autogenerated tests, fix bug where bike type wasn't saving
This commit is contained in:
@@ -4,6 +4,5 @@ class Bike < ActiveRecord::Base
|
||||
validates :model, presence: true
|
||||
validates :bike_type, presence: true
|
||||
validates :color, presence: true
|
||||
validates :frame_size, presence: true
|
||||
validates :serial_number, presence: true
|
||||
end
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
class Client < ActiveRecord::Base
|
||||
has_one :bike
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user