当前位置: 动力学知识库 > 问答 > 编程问答 >

ruby on rails rake db:migrate error

问题描述:

i'm starting to learn ruby on rails using this guide :

getting_started , i created my project and database but when i run rake db:migrate i get this error:

@mona-Extensa-5230:~/rubyDev/Sites/blog# rake db:migrate

(in /home/mona/rubyDev/Sites/blog)

== CreatePosts: migrating ====================================================

-- create_table(:posts)

rake aborted!

An error has occurred, this and all later migrations canceled:

private method `String' called for#

ActiveRecord::ConnectionAdapters::TableDefinition:0xb7540f30>

thanks.

网友答案:

Looks like you have a line like this in one of your migrations:

t.String

Note that the s needs to be in lowercase (t.string)

分享给朋友:
您可能感兴趣的文章:
随机阅读: