1
0
Fork 0
dokkan-data-rails/app/models/link.rb

8 lines
175 B
Ruby

class Link < ActiveRecord::Base
has_and_belongs_to_many :cards
validates :name, presence: true,
uniqueness: true
default_scope { order(:name) }
end