foodsoft/plugins/links/app/models/link.rb
2020-09-05 14:40:11 +02:00

7 lines
151 B
Ruby

class Link < ApplicationRecord
belongs_to :workgroup, optional: true
validates_presence_of :name, :url
scope :ordered, -> { order(:name) }
end