我正在尝试使用Ruby on Rails创建一个简单的应用程序。我创建了这个脚手架:
rails generate scaffold Pic title:string content:blob description:text
当我尝试使用rake db:migrate
迁移数据库时,出现了以下错误:
rake aborted!
An error has occurred, this and all later migrations canceled:
undefined method `blob' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0xb74f8ec4>
当我写
text
而不是 blob
时,它可以正常工作。那么 blob
的问题在哪里呢?