开发者

is it necessary to use db:migrate for working

开发者 https://www.devze.com 2023-01-14 17:45 出处:网络
Is it necessary to use db:migrate? I have existing database, i want to write ROR classes for this and synchronize with DB.

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

精彩评论

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