Skip to content

Commit 33dddd6

Browse files
committed
fix(dummy-departments-city): use belongs_to instead of has_many
1 parent c3cd818 commit 33dddd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
class DepartmentsCity < ActiveRecord::Base
2-
has_many :departments
3-
has_many :cities
2+
belongs_to :department
3+
belongs_to :city
44
end

0 commit comments

Comments
 (0)