Skip to content

Instantly share code, notes, and snippets.

@tpitale
Forked from anonymous/gist:114960
Created May 20, 2009 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpitale/114964 to your computer and use it in GitHub Desktop.
Save tpitale/114964 to your computer and use it in GitHub Desktop.
class GameMode
include DataMapper::Resource
property :id, Serial
property :title, String
property :description, Text
property :max_players, Integer
has n :games, :through => Resource
has n, :types, :through => Resource
has n, :game_modes, :through => Resource
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment