So are you trying to migrate your 1.043 tracks database? If so, it doesn't seem like your migration should be starting with such a low number.

Two things:

A) Try adding the following lines to db/migrate/002_add_user_id.rb after line 1:

  class Project < ActiveRecord::Base; end
  class Context < ActiveRecord::Base; end
  class Todo < ActiveRecord::Base; end

and re-run your migration. Not sure if this will help, but I'm curious.

B) With an empty database, try running rake db:migrate and see if that is successful.

We haven't really looked into the upgrade process from 1.043 to the next release, but we will be soon as we start to nail down that release.

Cheers,
Luke


On Feb 26, 2007, at 11:26 PM, Colin Canfield wrote:

I have just started using the last release and am really impressed, but want to have a look at trunk.

I'm new at Ruby, so there is some learning involved, but I think the environment is fine.. 4.013 installed without too many issues. I'm using OSX, with mysql 5.027-max.

When I run a db:migrate it fails during the AddUserId: migrating step.

The output is ...

   add_colum(:todos, :user_id, :integer, {:default=>1})
   -> 0.0069s
rake aborted!
unitialized constant Context::Tracks

The tables produced are contexts, projects, schema_info, todos, users.

Is this a known issue, or am I doing something wrong ?

Thanks, Colin

--
-----------------------------------------------------------------
Colin Canfield
[EMAIL PROTECTED]
0412 197 943
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

Reply via email to