On Migration: undefined method `to_sym' for nil:NilClass

后端 未结 9 1902
日久生厌
日久生厌 2020-12-10 12:27

I\'m running Rails 3.0.3 and I accidentally made a typo in my migration: I created a migration that creates a new column with a type of boolen (it should have b

9条回答
  •  佛祖请我去吃肉
    2020-12-10 12:50

    You can also fix the database using a database tool. I had the same problem and used the great application "Base" for MacOS X. It allows you to change the field type of sqlite databases.

    In the background it just creates a new table with the modified fields and copies the data from the original one. Worked for me!

提交回复
热议问题