Permalink
Browse files

♻️ Delete syndicates with posts

  • Loading branch information...
adamdawkins committed Jan 21, 2019
1 parent f084629 commit 3b63967ac7cf9b5d2f9b778bdfb2abd4656f7085
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/post.rb
@@ -12,7 +12,7 @@ class Post < ApplicationRecord
validates_presence_of :content
validates_with SlugValidator

has_many :syndicates
has_many :syndicates, dependent: :destroy

before_validation :generate_slug

0 comments on commit 3b63967

Please sign in to comment.