0
红宝石2.0.0p247gem annotate,错误:无法注释app/models/blog_post.rb:未定义的方法`supports_foreign_keys?'
的Rails 3.2.22
MySQL的
我加了宝石 '注释' 束后安装。宝石被安装
下一步:导轨克译注:安装
下一步骤:执行rake分贝:迁移
显示误差:
无法注释的应用程序/模型/ blog_post.rb:未定义的方法`supports_foreign_keys?' ActiveRecord的:: ConnectionAdapters :: Mysql2Adapter:0x0000000346aae8
同样,对于其它型号
错了呢?如何解决这个问题。谢谢。
编辑
shema.rb
.........................
create_table "blog_posts", :force => true do |t|
t.integer "user_id", :null => false
t.string "subject"
t.text "body", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.integer "comments_count", :default => 0, :null => false
t.boolean "delta", :default => true, :null => false
t.string "tags_line"
t.string "commentable_by", :default => "all", :null => false
t.string "visible_by", :default => "all", :null => false
t.integer "article_id"
t.boolean "draft", :default => false, :null => false
t.datetime "published_at"
t.datetime "last_comment_at"
end
add_index "blog_posts", ["delta"], :name => "index_blog_posts_on_delta"
add_index "blog_posts", ["user_id"], :name => "index_blog_posts_on_user_id"
........................................................................
大大谢谢 –