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

9 lines
250 B
Ruby
Raw Normal View History

2015-02-15 17:10:17 +01:00
# This class is linked to events and organisations
#
# 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
2015-02-15 17:10:17 +01:00
has_many :orgas, foreign_key: :city, primary_key: :name
2013-12-03 21:56:20 +01:00
end