gitlab-org--gitlab-foss/app/models/board.rb
2016-08-17 12:58:57 -03:00

7 lines
177 B
Ruby

class Board < ActiveRecord::Base
belongs_to :project
has_many :lists, -> { order(:list_type, :position) }, dependent: :delete_all
validates :project, presence: true
end