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 <[email protected]> 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 <[email protected]> wrote: > >> You can use dm-migrations. >> >> ..tony.. >> >> On Fri, Feb 26, 2010 at 5:21 PM, Vito Botta <[email protected]> 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 [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<datamapper%[email protected]> >>> . >>> 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 [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<datamapper%[email protected]> >> . >> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<datamapper%[email protected]> > . > 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 [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.
