9 lines
240 B
Ruby
9 lines
240 B
Ruby
# This class is linked to events and lugs
|
|
#
|
|
# It is mainly used to manage coordinates
|
|
#
|
|
class City < ActiveRecord::Base
|
|
has_many :events, foreign_key: :city, primary_key: :name
|
|
has_many :lugs, foreign_key: :city, primary_key: :name
|
|
end
|