[英]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: 我开始使用本指南学习ruby on rails: getting_started ,我创建了我的项目和数据库但是当我运行rake db:migrate时我得到了这个错误:
@mona-Extensa-5230:~/rubyDev/Sites/blog# rake db:migrate
@ mona-Extensa-5230:〜/ rubyDev / Sites / blog#rake db:migrate
(in /home/mona/rubyDev/Sites/blog)(在/ home / mona / rubyDev / Sites / blog)
== CreatePosts: migrating ==================================================== -- create_table(:posts)== CreatePosts:迁移============================================= ======= - create_table(:帖子)
rake aborted!耙子流产了!
An error has occurred, this and all later migrations canceled:发生错误,此以及所有后续迁移都已取消:
private method `String' called for#私有方法`String'调用#
ActiveRecord::ConnectionAdapters::TableDefinition:0xb7540f30>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
) 请注意,
s
需要小写( t.string
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.