Update vehicle.rb

This commit is contained in:
2016-05-31 08:21:05 -04:00
parent 00b6939571
commit 9342ef146c

View File

@@ -15,7 +15,7 @@ class Vehicle < ActiveRecord::Base
belongs_to :customer
has_many :issues, :foreign_key => 'vehicles_id'
attr_accessible :year, :make, :model, :customer, :notes, :vin
attr_accessible :year, :make, :model, :customer_id, :notes, :vin
validates_presence_of :customer
validates :vin, uniqueness: true