Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rubygems"
- require "dm-core"
- require "dm-migrations"
- DataMapper.setup(:default, { :adapter => 'mysql',
- :database => 'test',
- :username => 'test',
- :password => '',
- :hostname => 'localhost' })
- class Circle
- include DataMapper::Resource
- property :id, Serial
- property :radius, Integer
- end
- # Dies Here
- Circle.auto_migrate!
Add Comment
Please, Sign In to add comment