namelessjon (owner)

Forks

Revisions

gist: 229864 Download_button fork
public
Public Clone URL: git://gist.github.com/229864.git
Embed All Files: show embed
standalone_example.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env ruby
#
# A one file test to show ...
require 'rubygems'
require 'dm-core'
 
 
# setup the logger
DataMapper::Logger.new(STDOUT, :debug)
 
# connect to the DB
DataMapper.setup(:default, 'sqlite3::memory:')
 
# models go here
 
DataMapper.auto_migrate!
 
# put the code here!
 
 
__END__
 
# put a copy of the output here, it sometimes helps