From 2f828542efb8609b28246214dd7364510874d6aa Mon Sep 17 00:00:00 2001 From: Thor77 Date: Tue, 11 Dec 2018 14:49:02 +0100 Subject: [PATCH] Alias recieved_points to received_points to avoid a change of the db schema for now --- app/models/group_score.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/group_score.rb b/app/models/group_score.rb index d7686d3..75ba75e 100644 --- a/app/models/group_score.rb +++ b/app/models/group_score.rb @@ -3,4 +3,7 @@ class GroupScore < ApplicationRecord belongs_to :team belongs_to :group + + # :) + alias_attribute :received_points, :recieved_points end