Hi all, is there any way we can override the name of a join table?
I’ve got 2 tables called “Location” and “Index” and the join table to
the two together is called “LocationIndex” instead of “location_index”
Rails expects it.
I’ve even created a model for this join table and I can access its
fine but everytime it tries to use the join table, Rails comes up with
Invalid object name ‘location_index’, indeed the table is called
PS: I’m working on a legacy database so I cannot change the name of the
PSS: Even if it means hacking the source I’m willing to look at it. I’ve
tried myself to find out where in ActiveRecord this was taking place but
couldn’t find anything interesting.