Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.284 kb
require 'dm-core'
require 'dm-migrations'
require 'user'
DataMapper.setup(:default, 'mysql://root:root@localhost/modular')
class Order
include DataMapper::Resource
property :id, Serial
property :created_on, DateTime
property :order_no, String
belongs_to :user
end
Jump to Line
Something went wrong with that request. Please try again.