debian-mirror-gitlab/app/models/board.rb

8 lines
177 B
Ruby
Raw Normal View History

2016-09-13 17:45:13 +05:30
class Board < ActiveRecord::Base
belongs_to :project
has_many :lists, -> { order(:list_type, :position) }, dependent: :delete_all
validates :project, presence: true
end