Skip to content

Instantly share code, notes, and snippets.

@robbielamb
Created November 20, 2009 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robbielamb/239606 to your computer and use it in GitHub Desktop.
Save robbielamb/239606 to your computer and use it in GitHub Desktop.
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