agenda-libre-ruby/app/models/lug.rb

7 lines
246 B
Ruby
Raw Normal View History

# Groups related to this agenda
class Lug < ActiveRecord::Base
2014-07-01 15:50:39 +02:00
belongs_to :related_region, foreign_key: 'region', class_name: Region
has_one :related_city, foreign_key: :name, primary_key: :city,
class_name: City
end