Re: db:push failure

2010-11-24 Thread Josh Coffman
How do I drop all tables if db:reset isn't supported? I want to start over with migrations, but I'm getting an error when I try. On Wed, Nov 24, 2010 at 2:37 PM, Josh Coffman wrote: > Yep, and I was considering dropping everything and trying again. But I dont > think it will matter. > > > On Wed

Re: db:push failure

2010-11-24 Thread Josh Coffman
Yep, and I was considering dropping everything and trying again. But I dont think it will matter. On Wed, Nov 24, 2010 at 1:18 PM, José wrote: > I suppose you executed rake db:migrate, right? > > > > El 24/11/2010, a las 18:54, Josh Coffman escribió: > > Makes sense, so I added a migration to c

rails 3.0.3 bundle - tread carefully!

2010-11-24 Thread mattsly
I just had an exciting afternoon-before-thanksgiving...I read all the goodness at: http://weblog.rubyonrails.org/2010/11/15/rails-3-0-3-faster-active-record-plus-plenty-of-fixes ...about better perf and low-risk changes with Rails 3.0.3, so I did a local upgrade from 3.0.1, ran some tests, everyth

Re: db:push failure

2010-11-24 Thread José
I suppose you executed rake db:migrate, right? El 24/11/2010, a las 18:54, Josh Coffman escribió: > Makes sense, so I added a migration to change those columns to text. But it > didn't seem to change schema.rb. Is this because I'm using sqlite3 locally? I > tried to update and push to heroku

Re: multiple databases

2010-11-24 Thread Peter van Hardenberg
Manually establishing a connection should work just fine. Just do something like this in the class you want to use the alternate database: url = URI.parse(ENV["HEROKU_POSTGRESQL_RONIN_URL"]) ActiveRecord::Base.establish_connection( { :adapter => url.protocol, :host => url.host,

Re: db:push failure

2010-11-24 Thread Josh Coffman
Makes sense, so I added a migration to change those columns to text. But it didn't seem to change schema.rb. Is this because I'm using sqlite3 locally? I tried to update and push to heroku and still got the same error. -j On Wed, Nov 24, 2010 at 10:10 AM, Steve Smith wrote: > Hi Josh, > > It lo

Re: db:push failure

2010-11-24 Thread Steve Smith
Hi Josh, It looks like one of your string fields is too long for the 255 character limit imposed by postgres. You could maybe try migrating to text rather than string or truncate the value locally? Steve On 24 Nov 2010, at 17:05, Josh Coffman wrote: > Howdy! > > I'm trying to push data fr

db:push failure

2010-11-24 Thread Josh Coffman
Howdy! I'm trying to push data from my local sqlite3 up to heroku, but its failing. Can someone tell me what I'm doing wrong? (calline heroku db:push --app ) It's a long error; here's the top: Saving session to push_201011240903.dat.. !!! Caught Server Exception HTTP CODE: 500 Taps Server Error

Re: Minimalistic resque-scheduler for Heroku

2010-11-24 Thread Idris
We actually just ended up running Clockwork on a Tiny EC2 instance to queue up scheduled jobs. Much less overhead than resque-scheduler, and very clean. It's about 4 lines of code :) On Nov 24, 9:10 am, Clément wrote: > Hi all ! > You may find this useful :https://github.com/clmntlxndr/heroku-sc

Minimalistic resque-scheduler for Heroku

2010-11-24 Thread Clément
Hi all ! You may find this useful : https://github.com/clmntlxndr/heroku-scheduler It's an minimalistic app that aim to schedule another one's tasks, using resque-scheduler. It needs one full-time worker from his side ; and one or many workers doing the jobs at the other side, in the "main" app.

Re: multiple databases

2010-11-24 Thread Mark Ellul
Thanks for your response Wes. I need to do is have my Heroku apps with their own database and using a different database with the engine At the moment I am thinking of inheriting all my Engine's Models from one abstract model with a establish_connection set to my engine's DB. However I am not sur