OK, I messed around with the rake / sequel migration and came up with ...
<<
namespace :db do
task :migrate do
version = ENV['VERSION'] ? "-M #{ENV['VERSION']}" : ""
system "sequel -m dbMigration #{version} #{ENV['DATABASE_URL'] ||
'sqlite://library.sqlite'} "
end
end
>>
Does that look like something reasonable?
Scott
On Fri, Aug 20, 2010 at 6:14 AM, Scott LaBounty <[email protected]> wrote:
> Thanks everyone for all your help. I did get everything working on Heroku.
>
> One thing though, does anyone have a rakefile that has migrations in them.
> I haven't used rake that much and what I came up with for the migrations
> doesn't look too elegant. I'm using something similar to:
>
> task :migrate do
> system "sequel -m ..."
> end
>
> Is there a better way?
>
> Thanks again.
>
>
> --
> Scott
> http://steamcode.blogspot.com/
>
--
Scott
http://steamcode.blogspot.com/
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" 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/sequel-talk?hl=en.