mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
Louis | Allows users to associate clients with agencies
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
class Agency < ActiveRecord::Base
|
||||
has_many :clients
|
||||
end
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
class Client < ActiveRecord::Base
|
||||
has_one :bike
|
||||
belongs_to :agency
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user