<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>iamfangfang123</title>
    <link>https://ruby-china.org/iamfangfang123</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>数据库表无法生成</title>
      <description>&lt;p&gt;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 &amp;lt; ActiveRecord::Base
end
migrate 下的
class CreatePosts &amp;lt; ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.column "title",:string
      t.timestamps
    end
  end&lt;/p&gt;

&lt;p&gt;def self.down
    drop_table :posts
  end
end&lt;/p&gt;</description>
      <author>iamfangfang123</author>
      <pubDate>Mon, 07 Jan 2013 16:36:01 +0800</pubDate>
      <link>https://ruby-china.org/topics/7845</link>
      <guid>https://ruby-china.org/topics/7845</guid>
    </item>
  </channel>
</rss>
