新手问题 rake db:migrate 出问题了,请问怎么解决啊!(问题已经解决)

yshyee · November 04, 2012 · Last by yshyee replied at November 04, 2012 · 2066 hits

===CreatePosts:migrating========== rake aborted! An error has occurred,this and all later migratons canceled:

private method 'test' called for #ActiveRecord::ConnectionAdapters::TableDefinition:0xaff9f8

Taskes:TOP=>db:migrate (See full trrace by running task with --trace)

应该是你的程序有问题,错误信息:private method 'test' called

非常感谢,问题终于找出来了,在创建表的迁移任务时,字段类型写错了应该是 t.text 而我写成了 t.test 真实太大意啊!

You need to Sign in before reply, if you don't have an account, please Sign up first.