On Tue, 6 Jan 2009 09:15:27 -0800 (PST)
Jenny <[email protected]> wrote:
>
> "echo the require statements"? I'm not sure what that means...and
> google seems to be no help... And which task? The migration task?
>
> *ponder* But, you don't think that weird migration code is wrong,
> then? If it's right, I'm stumped (unless you can explain what you
> meant about echoing the require statements, that is)
>
> -Jenny
Hi
Sorry for being unclear. By echo I meant "Output to the console", something
like:
namespace :dm do
task :migrate => :environment do
gem "dm-migrations"
require "migration_runner"
Dir[File.join(Rails.root, "db", "migrate", "*")].each do |f|
puts f
require f
end
migrate_up!
end
end
It might help clear up what the issue is, since you said it was "All upset it
couldn't find users.rb in the migration folder", which doesn't sound like it's
a migrations problem, per se, but one in the code which is requiring things.
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
-~----------~----~----~----~------~----~------~--~---