Skip to content
Snippets Groups Projects
Commit 08427791 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

fix dependent destroy rating

parent c9cdf559
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
# #
class Rating < ApplicationRecord class Rating < ApplicationRecord
has_many :review_ratings has_many :review_ratings, dependent: :destroy
has_many :reviews, through: :review_ratings has_many :reviews, through: :review_ratings
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment