2013-12-28 15:45:21 +01:00
|
|
|
class Lug < ActiveRecord::Base
|
2014-07-01 15:50:39 +02:00
|
|
|
belongs_to :related_region, foreign_key: 'region', class_name: Region
|
2014-05-10 11:38:39 +02:00
|
|
|
has_one :related_city, foreign_key: :name, primary_key: :city, class_name: City
|
2013-12-28 15:45:21 +01:00
|
|
|
end
|