Skip to content

Instantly share code, notes, and snippets.

@myabc
Forked from robbielamb/gist:239606
Created Nov 20, 2009
Embed
What would you like to do?
require "rubygems"
require "dm-core"
require "dm-migrations"
DataMapper.setup(:default, "mysql://test:@localhost/test")
class Circle
include DataMapper::Resource
property :id, Serial
property :radius, Integer
end
# Dies Here
Circle.auto_migrate!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment