dynamic table names for Active Record models

后端 未结 7 1355
感情败类
感情败类 2021-01-27 13:25

I have an interesting Active Record problem and I\'m not quite sure what the cleanest solution is. The legacy database that I am integrating with has a strange wrinkle in its sc

相关标签:
7条回答
  • 2021-01-27 14:07

    Sadly, I know your troubles. Whoever thought to partition the tables in your database must have gotten fired by your boss and hired by mine ;-)

    Anyway, the solution (via RailsForum): http://railsforum.com/viewtopic.php?id=674

    is to use Dr. Nic's Magic Models.

    Cheers

    0 讨论(0)
提交回复
热议问题