Skip to content

Instantly share code, notes, and snippets.

@knowtheory
Created December 22, 2010 02:47
Show Gist options
  • Select an option

  • Save knowtheory/751016 to your computer and use it in GitHub Desktop.

Select an option

Save knowtheory/751016 to your computer and use it in GitHub Desktop.
{
:tracks => {
:uuid1 => {:track_name => "The Sign", :album_name => "The Sign", :artist_id => 1},
:uuid2 => {:track_name => "Walking On Broken Glass", :album_name => "Diva", :artist_id => 2},
:uuid3 => {:track_name => "Autumn Leaves", :album_name => "Philosophy", :artist_id => 3}
}
}
class Track
include DataMapper::Resource
property :track_name, String, :key => true
property :album_name, String, :key => true
property :artist_id, Integer, :key => true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment