2015-12-28 23:15:59 -08:00

7 lines
190 B
Ruby

class Table < ActiveRecord::Base
has_many :seats
has_many :users, through: :seats
has_many :games
has_one :current_game, :class_name => "Game", :primary_key => "current_game_id"
end