Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Project
- include DataMapper::Resource
- property :id, String, :key => true
- property :description, Text
- has 0..n, :packages
- belongs_to :account, :key => true
- end
- class Account
- include DataMapper::Resource
- property :id, String, :key => true
- property :description, Text
- property :report_email, String
- has 1..n, :projects, :constraint => :destroy
- end
- class Package
- include DataMapper::Resource
- property :id, String, :key => true
- property :uri, String
- belongs_to :project
- end
Add Comment
Please, Sign In to add comment