IDE 是 netbeans7.2.1 创建项目后 localhost:3000 页面显示如下: About your application’s environment Ruby version 1.8.7 (i386-mingw32) RubyGems version 1.8.24 Rails version 2.0.2 Active Record version 2.0.2 Action Pack version 2.0.2 Active Resource version 2.0.2 Action Mailer version 2.0.2 Active Support version 2.0.2 Application root E:/netbeansWorkSpace/RailsApplication2 Environment development Database adapter mysql 在 netbeans 创建的项目上右键 migrate database-》to current version 出现 "db:migrate" does not task 错误,不能生成数据库表。请问我应该怎么解决? 其中生成的 model 类为 class Post < ActiveRecord::Base end migrate 下的 class CreatePosts < ActiveRecord::Migration def self.up create_table :posts do |t| t.column "title",:string t.timestamps end end
def self.down drop_table :posts end end