Rails 数据库表冲突

hastings · February 28, 2013 · Last by hastings replied at February 28, 2013 · 1848 hits

一个项目使用两个数据库,其中有两张分别处于不同数据库的同名表,请问如何避免冲突,又能正常调用两张表的数据 ps:两张表的表结构不同

model 名不取一样的就好了啊,用self.table_name =指定表名

谢谢,以前没碰到过

You need to Sign in before reply, if you don't have an account, please Sign up first.