2011-11-10 53 views
0

我得到以下錯誤:軌道遷移錯誤 - 發生在所有遷移

Loading development environment (Rails 3.1.0) 
ruby-1.9.2-p290 :001 > rails generate migration create_locations_users 
NameError: undefined local variable or method `create_locations_users' for main:Object 
from (irb):1 
... 

這是發生的所有遷移。有什麼想法可能會出錯?

THX

回答

1

不要從肋骨或控制檯內運行遷移 - 從命令行直接運行它。

+0

對不起...對不起那些日子之一 – timpone

+0

它偶爾會發生。 – Cory