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"
........................................................................
大大謝謝 –