使用迁移文件将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
.