diff options
Diffstat (limited to 'app/models/board.rb')
-rw-r--r-- | app/models/board.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/board.rb b/app/models/board.rb index d6358fb15e8..3240c4bede3 100644 --- a/app/models/board.rb +++ b/app/models/board.rb @@ -1,7 +1,7 @@ class Board < ActiveRecord::Base belongs_to :project - has_many :lists, -> { order(:list_type, :position) }, dependent: :destroy + has_many :lists, -> { order(:list_type, :position) }, dependent: :delete_all validates :project, presence: true end |