board.rb 177 Bytes
Newer Older
1 2 3
class Board < ActiveRecord::Base
  belongs_to :project

4
  has_many :lists, -> { order(:list_type, :position) }, dependent: :delete_all
5 6 7

  validates :project, presence: true
end