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