diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/license.rb | 2 | ||||
| -rw-r--r-- | app/models/location.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/license.rb b/app/models/license.rb index 12bb387..b7e1dff 100644 --- a/app/models/license.rb +++ b/app/models/license.rb @@ -1,7 +1,7 @@ class License < ActiveRecord::Base belongs_to :company belongs_to :well_type - has_one :location + belongs_to :location belongs_to :applicant, class_name: 'User', foreign_key: 'user_id' def status 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 |
