Well, before ask here I searched a lot. After, again, and found :)
http://github.com/godfat/dm-is-reflective

Example:

require 'rubygems'
require 'dm-core'
require 'dm-is-reflective'
class Post
  include DataMapper::Resource
  is :reflective
  reflect
end
puts Post.fields
puts Post.all.size


On Apr 17, 3:24 pm, Tom Lobato <[email protected]> wrote:
> I need to migrate data from a existing mysql database, making some
> cleaning on it.
> Is it possible to create DM models with no need to define each class
> manually?
>
> Thank you in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to