You called:
UsersMEGHAsagar_blog>rails generate scaffold post title:string body:text
remove the excess
:
UsersMEGHAsagar_blog>rails generate scaffold post title:string body:text
is actually a hard blank, which causes the body
field to be called body
(with a blank before the name), this causes the migration file to generate a line t.text : body
instead of t.text :body
, which fails the migration (and probably later will fail other stuff as well).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…