Fix typo in received_points

This commit is contained in:
Daniel Schädler 2019-05-27 22:43:06 +02:00
parent bd0f8c7fd2
commit c1dc43948b
2 changed files with 1 additions and 4 deletions

View File

@ -3,7 +3,4 @@
class GroupScore < ApplicationRecord
belongs_to :team
belongs_to :group
# :)
alias_attribute :received_points, :recieved_points
end

View File

@ -104,7 +104,7 @@ class CreateSchema < ActiveRecord::Migration[5.2]
create_table :group_scores do |t|
t.integer :group_points, default: 0
t.integer :scored_points, default: 0
t.integer :recieved_points, default: 0
t.integer :received_points, default: 0
t.belongs_to :team, index: true, foreign_key: { on_delete: :cascade }, null: false
t.belongs_to :group, index: true, foreign_key: { on_delete: :cascade }, null: false