i'm working on the One Month Rails app and I recently run into this error when i try to run rake db: migrate:

enter image description here

Here is what my migration file looks like:

enter image description here

Any help on how to solve this? Thanks in advance

有帮助吗?

解决方案

Try with specifying the version and run.

rake:db:migrate VERSION = your_file_version

In your case,it is

rake:db:migrate VERSION = 20140418122310

Edit

In your migration file change this line

create_table :pins do |t|

to like this

change_table :pins do |t|
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top