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

5 lines
161 B
Ruby
Raw Normal View History

class Lug < ActiveRecord::Base
belongs_to :region, foreign_key: 'region'
has_one :related_city, foreign_key: :name, primary_key: :city, class_name: City
end