^ That will probably need an update! Last touched in 2009 :) On Apr 13, 5:27 pm, Ted Han <t...@knowtheory.net> wrote: > There's an old lib that snusnu created called dm-reflection which inspects a > DB and can generate models from it (i think). I've not used it > thoughhttp://github.com/snusnu/dm-reflection > > > > On Wed, Apr 13, 2011 at 6:25 PM, RipTheJacker <kab...@gmail.com> wrote: > > There isn't really a schema:dump equivalent. You can see the schema of > > a model by looking at the property list in the model file, as Yi Wen > > suggested. Here is a quick way to see all of them in IRB or a Rake > > task, if you have all of your models loaded: > > > DataMapper::Model.descendants.each do |model| > > puts model.name > > model.properties.each{|p| puts "#{p.name} => #{p.primitive}" } > > puts > > end > > > As for schema:load, using db:automigrate (DataMapper.auto_migrate!) is > > the same. > > > On Apr 12, 10:01 pm, Yi Wen <hayafi...@gmail.com> wrote: > > > Interesting question. I myself am also new to DM. But it seems if you > > need > > > to know the schema of a table, just open the model file, all the > > information > > > is available there. > > > > about schema load, is rake db:automigrate the same? > > > -- > > You received this message because you are subscribed to the Google Groups > > "DataMapper" group. > > To post to this group, send email to datamapper@googlegroups.com. > > To unsubscribe from this group, send email to > > datamapper+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/datamapper?hl=en.
-- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamapper@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.