Browse Source

add some validations

vagrant
loos 11 years ago
parent
commit
a33cc4423f
  1. 7
      app/models/bike.rb

7
app/models/bike.rb

@ -1,2 +1,9 @@
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

Loading…
Cancel
Save