diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-24 17:01:42 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-24 17:02:00 -0400 |
commit | 27c3e207b299e6c5a94a1ab81412bb9e11a0d92a (patch) | |
tree | 744f90df73c92499ead5619913f8957187487ef6 /app/models/tournament.rb | |
parent | 992dc06e50d74aca79ed58d868be6113e3ebe55c (diff) |
rename Tournament#tournament_stages to Tournament#stages
Diffstat (limited to 'app/models/tournament.rb')
-rw-r--r-- | app/models/tournament.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tournament.rb b/app/models/tournament.rb index caa711c..861be6c 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -1,6 +1,6 @@ class Tournament < ActiveRecord::Base belongs_to :game - has_many :tournament_stages + has_many :stages, class_name: "TournamentStage" has_many :settings_raw, class_name: "TournamentSetting" has_and_belongs_to_many :players, class_name: "User", association_foreign_key: "player_id", join_table: "players_tournaments" has_and_belongs_to_many :hosts, class_name: "User", association_foreign_key: "host_id", join_table: "hosts_tournaments" |