开发者

is it necessary to use db:migrate for working

Is it necessary to use db:migrate?

I have existing database, i want to write ROR classes for this and synchronize with DB.

How can I do thi开发者_开发问答s?


You do not. Your class name just has to match the table name. However, I would warn you that working with Active Record (the rails orm by default) against an existing db that doesn't have the ar conventions is going to be a huge pain. I would recommend checking out datamapper, and using rails 3 (since alternative orms in rails 3 is way easier)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜