mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 09:43:24 -04:00
13 lines
224 B
Ruby
13 lines
224 B
Ruby
class Forum < ApplicationRecord
|
|
extend FriendlyId
|
|
validates :name, presence: true
|
|
friendly_id :name, use: %i(slugged finders)
|
|
|
|
has_many :posts
|
|
belongs_to :owner, class_name: "Member"
|
|
|
|
def to_s
|
|
name
|
|
end
|
|
end
|