mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Fix bug in boards load and destroy belonging posts when destroying board
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
class Board < ApplicationRecord
|
||||
has_many :posts, dependent: :destroy
|
||||
|
||||
after_initialize :set_order_to_last
|
||||
|
||||
validates :name, presence: true, uniqueness: true
|
||||
|
||||
Reference in New Issue
Block a user