使用迁移文件将MySQL-DB-Dump导入Rails应用程序 [英] Import MySQL-DB-Dump into a Rails app using a migration file
本文介绍了使用迁移文件将MySQL-DB-Dump导入Rails应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有一堆MySQL表的旧PHP应用程序。我想用Rails(3)重写它并想导入旧数据。
I have an old PHP application with a bunch of MySQL tables. I want to rewrite it with Rails(3) and want to import the old data. How can I write a migration-script to import the MySQL-Dump into a sqlite DB?
推荐答案
我如何编写迁移脚本以将MySQL MySQL转储导入sqlite数据库? DATA DB Dump(不是模式),并使用另一个迁移文件和 create_table
创建表。
I solved the Problem with a DATA DB Dump (not the schema) and create the tables with another migration file and create_table
.
这篇关于使用迁移文件将MySQL-DB-Dump导入Rails应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文