Hmm...nope, I haven't done anything with tests yet. Test db is
actually just a dummy file for right now.  *ponder* Hmm...weird.
Before it was erroring even if I tried to run the server, now it's
just erroring when I try to migrate. Maybe it's something in the
migration files...Yep, there it was:

namespace :dm do
   task :migrate => :environment do
     gem "dm-migrations", "=0.9.6"
     require "migration_runner"
     Dir[File.join(Rails.root, "db", "migrate", "*")].each {|f|
require f}
     migrate_up!
   end
 end


Of course it still isn't working, but that's one bug defeated!  Now
it's all upset that it can't find user.rb in my migrations folder,
when i can see it ^_^;; Probably some sort of compiler error.

I'm following the syntax of this tutorial:

http://blog.teksol.info/2008/10/16/how-to-use-datamapper-from-rails-including-migrations-and-tests.html

My code for the user migration is:

http://pastie.org/353830

Which doesn't look right to me, but the ActiveRecord style code
doesn't work either, giving the exact same error. (the altered code
being found at:   http://pastie.org/353832)

-Jenny






On Jan 6, 10:49 am, Jonathan Stott <[email protected]> wrote:
> On Tue, 6 Jan 2009 07:02:11 -0800 (PST)
>
>
>
> Jenny <[email protected]> wrote:
>
> > ^_^;; Sorry about that. I'm running it in rails.  The problem is that
> > I'm not entirely sure how much is relevant. As far as i can tell, only
> > the environment file sets version information.
>
> >http://pastie.org/353796
>
> > The above is the environment file.
>
> > And below is the .yml file.
>
> >http://pastie.org/353797
>
> > -Jenny
>
> I'm going to guess this is when you run tests, from the need to set things 
> correctly for the test db?
>
> Could you be activating the gem somewhere in your test folder?  Perhaps try 
> something really simple like "grep -r '0.9.6' *" in root of your app?  To see 
> if that version is used anywhere.
>
> There's no mention of 0.9.6 anywhere in dm-more, so I don't know where it's 
> getting that idea from.
>
> Regards,
> Jon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to