1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 08:43:23 -05:00

Remove unique constraint on bike_serial

bike serial index was already removed.
This commit is contained in:
Jason Denney 2013-08-18 00:51:45 -04:00
parent 869b67d3e4
commit a9fb3487a1

View File

@ -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