multiple database connections with has_many through

后端 未结 2 1751
梦毁少年i
梦毁少年i 2021-02-09 02:48

How can I make a has_many through work with multiple database connections?

I have a database named \"master\" that holds the location information. That is updated fro

2条回答
  •  长发绾君心
    2021-02-09 03:10

    The answer works for me, but I use this version in my relation table:

    self.table_name = "master.locations"
    

提交回复
热议问题