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

5 lines
189 B
Ruby
Raw Normal View History

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