Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Category
- include DataMapper::Resource
- property :id, Serial
- property :name, String
- property :description, Text
- property :url, String
- property :created_at, DateTime
- property :updated_at, DateTime
- has n, :images
- has n, :users, :through => Resource
- end
Add Comment
Please, Sign In to add comment