Вопрос

strange problem with rails migration.

I have 2 migrations in my app enter image description here

I run rake db:migrate enter image description here

Only one migration executed. No matter how many time I tried, the second migration was ignored

I also tried to run the specific migration by specifying a version number, but no luckenter image description here


Use rails 4.1 The first migration generated by

rails g scaffold User .......

The second migration generated by devise plugin

rails g devise user ........
Это было полезно?

Решение

The migration file generated is without extension .rb. It was an issue that was already reported in Devise. It was resolved in Devise version 3.2.3. Read the issue Generated migration filename missing extension #2971

Другие советы

Second file needs the .rb extension?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top