foodsoft/plugins/links/app/models/link.rb

8 lines
151 B
Ruby
Raw Normal View History

class Link < ApplicationRecord
belongs_to :workgroup, optional: true
2019-11-04 03:52:07 +01:00
validates_presence_of :name, :url
scope :ordered, -> { order(:name) }
end