1602/express-on-railway — Issue #129: Abstract model name away from table name
Author: contentfree
Created: 2012-03-07 07:05:09+00:00
State: open

I have a table 'user' and want a model User. However, Juggling currently doesn't seem to be able to make a distinction between the model name and the table name (I'm using MySQL here). It would be fantastic if Railway / Juggling adopted the Rails-like convention of tableizing model names *and* providing means of overriding the convention.

The ActiveRecord convention for tableization is to underscore and pluralize the model name, so User's table defaults to users. ActiveRecord also provides a set_table_name method to override the table name (so I could support my legacy 'user' table, in this case).