Browse Source

Remove unique constraint on bike_serial

bike serial index was already removed.
eperez-timeinput
Jason Denney 12 years ago
parent
commit
a9fb3487a1
  1. 2
      app/models/bike.rb

2
app/models/bike.rb

@ -14,7 +14,7 @@ class Bike < ActiveRecord::Base
belongs_to :bike_status
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_model_id, :presence => true
validates :color, :presence => true

Loading…
Cancel
Save