efatsi/Card-Games-on-Rails — pull request #2 by efatsi (2012-07-17 23:24:50+00:00)
Title: Refactor everything

Whole new organization. Just Hearts now, Spades might come later, BUT Deck is gone, PlayedTrick is gone. PlayerCard, PlayedCard, PlayerRound now exist. A Card exists only once in the database and players get dealt cards with PlayerCards. Everything that needs to be in order has a position, seats are done on Players (which is a game-user join), Player id's are passed around when needed instead of indexes or seats. Shit's organized.