I am new to rails and have come across a problem with a sample
application I was working on.
When trying to use rake migrate I got the error listed below.
my db file contains the following
class ContactDb < ActiveRecord::Migration
def self.up
create_table "people" do |t|
t.column "id", :integer
t.column "name", :string
t.column "address", :string
t.column "city", :string
t.column "state", :string
t.column "zipcode", :string
end
end
Try leaving out the spec for the id column--rails will add that for you.
Also--I don't know if it matters (probably doesn't) but if you're using
the current version of rails, there's a new syntax for migrations.
Here's my create_people, FWIW: