loos
11 years ago
1 changed files with 7 additions and 0 deletions
@ -1,2 +1,9 @@ |
|||||
class Bike < ActiveRecord::Base |
class Bike < ActiveRecord::Base |
||||
|
validates :log_number, presence: true |
||||
|
validates :brand, presence: true |
||||
|
validates :model, presence: true |
||||
|
validates :bike_type, presence: true |
||||
|
validates :color, presence: true |
||||
|
validates :frame_size, presence: true |
||||
|
validates :serial_number, presence: true |
||||
end |
end |
||||
|
Loading…
Reference in new issue