gitlab-org--gitlab-foss/app/models/board.rb

8 lines
177 B
Ruby
Raw Normal View History

2016-07-27 15:32:32 -04:00
class Board < ActiveRecord::Base
belongs_to :project
has_many :lists, -> { order(:list_type, :position) }, dependent: :delete_all
2016-07-27 15:32:32 -04:00
validates :project, presence: true
end