summaryrefslogtreecommitdiff
path: root/app/models/team.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/team.rb')
-rw-r--r--app/models/team.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/team.rb b/app/models/team.rb
index fa7ba9e..828d168 100644
--- a/app/models/team.rb
+++ b/app/models/team.rb
@@ -1,2 +1,6 @@
class Team < ActiveRecord::Base
+ has_and_belongs_to_many :matches
+ has_and_belongs_to_many :users
+
+ alias_attribute :players, :users
end