2015-02-15 17:10:17 +01:00
|
|
|
# This class is linked to events and organisations
|
2014-05-10 11:38:39 +02:00
|
|
|
#
|
|
|
|
# It is mainly used to manage coordinates
|
|
|
|
#
|
2017-05-27 09:34:24 +02:00
|
|
|
class City < ApplicationRecord
|
2014-05-10 11:38:39 +02:00
|
|
|
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
|