diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-22 13:03:45 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-22 13:03:45 -0700 |
| commit | d363dc6298e8210fb3a5eddea8a6916a54005290 (patch) | |
| tree | d722fbe64f53cfa4f05312e7444f007bb30c15f2 /app/models/location.rb | |
| parent | d62b19c584862b3c54559348475a93fffd985e7f (diff) | |
switch from has_one to belongs_to relationship.
Diffstat (limited to 'app/models/location.rb')
| -rw-r--r-- | app/models/location.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/location.rb b/app/models/location.rb index b74eabc..5587398 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -1,3 +1,3 @@ class Location < ActiveRecord::Base - belongs_to :license, autosave: true + has_one :license, autosave: true end |
