开发者

Is their any tool that can create Ruby on Rails migration script of existing Database

开发者 https://www.devze.com 2022-12-27 07:20 出处:网络
I wanted to know if there is any tool that can be used to create SQL migration script of existing database in Rub开发者_StackOverflowy on Rails?

I wanted to know if there is any tool that can be used to create SQL migration script of existing database in Rub开发者_StackOverflowy on Rails?

Also is there any visual tool that can be used to write Ruby on Rails migration script?


You can create a dump of the schema using rake, which will allow you to recreate your database . There isn't, AFAIK a visual tool to create migrations.


I think the correct way making a migration when already have a working database is to create a new migration, then manually put the schema dumped from db server, and add another line to import existing data.

3rd Rail has a builtin tool when you create a new migration. It has lots of other "wizards" for doing common ruby script tasks. But I found the IDE it self too slow especially when working on a imported project.

0

精彩评论

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

关注公众号