Permalink
Browse files

model associations fix

  • Loading branch information...
1 parent bece1d1 commit ee598c21dca04852a7dc53e19933b185475570bf @kevivmatrix committed Nov 10, 2013
Showing with 2 additions and 0 deletions.
  1. +1 −0 app/models/company.rb
  2. +1 −0 app/models/office.rb
View
@@ -1,5 +1,6 @@
class Company < ActiveRecord::Base
has_many :employees
+ has_many :offices
end
View
@@ -1,5 +1,6 @@
class Office < ActiveRecord::Base
belongs_to :company
+ has_many :employees
end

0 comments on commit ee598c2

Please sign in to comment.