专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Ruby/Rails

RUBY数据迁移 RAKE ABORTED,该如何处理

发布时间:2011-06-29 18:44:00 文章来源:www.iduyao.cn 采编人员:星星草
RUBY数据迁移 RAKE ABORTED
ruby 数据迁移中
我新建了一个001 
class CreateProducts < ActiveRecord::Migration 
  def self.up 
  create_table :products do |t| 
  t.column :title, :string 
  t.column :name, :text 
  t.column :image_url, :string 
  end 
  end 

  def self.down 
  drop_table :products 
  end 
end 

创建002侯..迁移时
运行的时候弹:

rake aborted
you have a nil object when you didn't expect it
you may have expected an instant of Array.
the error occured while evaluating nil.[]

------解决方案--------------------
楼主,我也遇到了这个问题,你解决了没有?如果解决了把原因帖出来帮小弟一把。谢谢!
------解决方案--------------------
lz要干嘛?
------解决方案--------------------
不知,帮顶
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: