mirror of
https://github.com/iritmaximus/brewery.git
synced 2026-10-12 19:13:49 +03:00
upto 2.12
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
class Beer < ApplicationRecord
|
||||
belongs_to :brewery
|
||||
has_many :ratings
|
||||
has_many :ratings, dependent: :destroy
|
||||
|
||||
def average_rating
|
||||
average = 0
|
||||
|
||||
Reference in New Issue
Block a user