From 2db29e1eecc7fc651a74157ef4cd9ef86c9079bf Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 12 May 2016 11:36:52 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index ae3c5a8..0f2b131 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -11,9 +11,9 @@ class Customer < ActiveRecord::Base unloadable - has_many :issues + has_many :issues, :foreign_key => 'customers_id' has_many :qbo_purchases - has_many :vehicles + has_many :vehicles, :foreign_key => 'customers_id' attr_accessible :name, :notes, :email, :primary_phone, :mobile_phone, :skip_details