2014-05-10 11:38:39 +02:00
|
|
|
# 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
|
2014-05-10 11:38:39 +02:00
|
|
|
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
|