Fix typo in received_points
This commit is contained in:
parent
bd0f8c7fd2
commit
c1dc43948b
|
|
@ -3,7 +3,4 @@
|
|||
class GroupScore < ApplicationRecord
|
||||
belongs_to :team
|
||||
belongs_to :group
|
||||
|
||||
# :)
|
||||
alias_attribute :received_points, :recieved_points
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue