Browse Source

Merge pull request #52 from spacemunkay/denney-remove-bike-serial-constraint

Remove unique constraint on bike_serial
eperez-timeinput
Jason Denney 12 years ago
parent
commit
06856f115c
  1. 2
      app/models/bike.rb

2
app/models/bike.rb

@ -14,7 +14,7 @@ class Bike < ActiveRecord::Base
belongs_to :bike_status belongs_to :bike_status
validates :shop_id, :presence => true, :uniqueness => true, :length => { :minimum => 3 } validates :shop_id, :presence => true, :uniqueness => true, :length => { :minimum => 3 }
validates :serial_number, :uniqueness => true, :length => { :minimum => 3 } validates :serial_number, :length => { :minimum => 3 }
validates :bike_brand_id, :presence => true validates :bike_brand_id, :presence => true
validates :bike_model_id, :presence => true validates :bike_model_id, :presence => true
validates :color, :presence => true validates :color, :presence => true

Loading…
Cancel
Save