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

5 lines
189 B
Ruby

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