Help! Error occurs while creating db schema for MySQL 5.0 using migration.

Hi all,

I'm creating the db schema for MySQL 5.0 using migration but run into
error. My migration file is as follows:

class CreateCustomers < ActiveRecord::Migration
  def self.up
    create_table :customers do |t|
      t.column :id, :integer, :null => false
      t.column :name, :string
    end
  end

  def self.down
    drop_table :customers
  end
end

And the error information is:

== CreateCustomers: migrating

class CreateCustomers < ActiveRecord::Migration
  def self.up
    create_table :customers do |t|
      t.column :id, :integer, :null => false
      t.column :name, :string
    end
  end

id column generates automatically :wink: