Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment