14 lines
206 B
Ruby
14 lines
206 B
Ruby
# This is mostly to group events around a region
|
|
class Region < ApplicationRecord
|
|
belongs_to :region
|
|
has_many :regions
|
|
|
|
has_many :orgas
|
|
|
|
default_scope { order :name }
|
|
|
|
def to_s
|
|
name
|
|
end
|
|
end
|