« Back to blog

Padrino and DataMapper migration issue?

I decided to play around with Padrino since I enjoy the syntax of
Sinatra and I also wanted to try out DataMapper as well. I wanted to
create a simple ToDo list project and created a model object called
"ChecklistItem" (notice the camel case between "Checklist" and
"Item").

In any case, I proceeded to run the appropriate migrations and
everything seemed to have run fine. This was, of course, until I
actually tried to perform an insert operation where I noticed that
Padrino was expecting to insert into "checklistitems" however the
migration created a table for "checklist_items".

Seems there's a gap with camel-cased model names...

| Viewed
times
Filed under: