upto 2.12

This commit is contained in:
Aaro Koivukangas
2023-08-08 10:34:26 +03:00
parent 403a3c3674
commit 25a334a662
+1 -1
View File
@@ -1,6 +1,6 @@
class Beer < ApplicationRecord
belongs_to :brewery
has_many :ratings
has_many :ratings, dependent: :destroy
def average_rating
average = 0