2014-08-06 14:47:47 +02:00
|
|
|
# Groups related to this agenda
|
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-08-06 14:47:47 +02:00
|
|
|
has_one :related_city, foreign_key: :name, primary_key: :city,
|
|
|
|
class_name: City
|
2013-12-28 15:45:21 +01:00
|
|
|
end
|