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

9 lines
240 B
Ruby
Raw Normal View History

# This class is linked to events and lugs
#
# It is mainly used to manage coordinates
#
2013-12-03 21:56:20 +01:00
class City < ActiveRecord::Base
has_many :events, foreign_key: :city, primary_key: :name
has_many :lugs, foreign_key: :city, primary_key: :name
2013-12-03 21:56:20 +01:00
end