DM-Is-Versioned and http://datamapper.org/docs/dm_more/ might help as well :-)
On Mar 1, 2010, at 3:57 PM, Vito Botta wrote: > I know and have played with it. But while it's nice, I am pretty sure nobody > at work would like to do some manual cleanup in the database for these things > :D > > On Mon, Mar 1, 2010 at 11:52 PM, Tony Mann <thephatm...@gmail.com> wrote: > I have never used dm-migrations. On those rare occasions when a field is > removed or altered, I do it by hand in MySQL client. Usually we add fields, > and autoupgrade handles that quite nicely. > > ..tony.. > > > On Mon, Mar 1, 2010 at 3:25 PM, Vito Botta <v...@botta.name> wrote: > Hi Tony, thanks for your reply. > > In the meantime I have started using Sequel as I found its migrations as easy > as ActiveRecord's and had no issues or difficulties at all using them with > Sinatra. > When I tried with Data Mapper, I couldn't find an easy way of doing the same > using dm-migrations with Sinatra. Would you be so kind as to point me in the > right direction with, possibly, an example? > I haven't done anything on Rails/ Ruby in general for a while because of my > current job, so I may not be up to date with a number of things and would > really appreciate if you could give me some more details. > > Thanks in advance > Vito > > On Mon, Mar 1, 2010 at 2:32 PM, Tony Mann <thephatm...@gmail.com> wrote: > You can use dm-migrations. > > ..tony.. > > On Fri, Feb 26, 2010 at 5:21 PM, Vito Botta <v...@botta.name> wrote: > Hi all > > I am currently investigating and evaluating a number of options for an > API that will be used by a number of applications, as part of the > restructuring of our technology stack. > > I am considering using Sinatra over Rails, and DataMapper over > ActiveRecord, as I want this API to be lightweight, with low memory > usage, and FAST. > > I like a lot the combination Sinatra+DataMapper, and the auto_upgrade > is cool. > But how do I go about cleaning up the tables etc when for example I > drop / rename columns, or do other changes besides simply adding a new > column? > > I am wondering how to manage things if I can't use ActiveRecord-like > migrations where the versioning is so clear. > > Any suggestions? > > Thanks! > > -- > > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To post to this group, send email to datamap...@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 datamap...@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 datamap...@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 datamap...@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 datamap...@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 datamap...@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.