summaryrefslogtreecommitdiff
path: root/app/models/board.rb
blob: 3240c4bede3f5b5cab9d61ebcc3c5a31e855a143 (plain)
1
2
3
4
5
6
7
class Board < ActiveRecord::Base
  belongs_to :project

  has_many :lists, -> { order(:list_type, :position) }, dependent: :delete_all

  validates :project, presence: true
end