14 lines
252 B
Ruby
14 lines
252 B
Ruby
class Link < ActiveRecord::Base
|
|
has_paper_trail
|
|
|
|
has_and_belongs_to_many :cards
|
|
|
|
validates :name, presence: true,
|
|
uniqueness: true
|
|
|
|
default_scope { order(:name) }
|
|
|
|
def self.issues
|
|
Link.where(description: nil)
|
|
end
|
|
end
|