Ricardo contacted me with this solution:
I'll have a bugfix release ready in a bit, for the time being do this:
edit this file:
/Library/Ruby/Gems/1.8/gems/taps-0.2.8/lib/taps/client_session.rb
at around line 146 after record_count += accum[table] add accum so it
looks like ->
tables_with_counts = tables.inject({}) do |accum, table|
accum[table] = db[table].count
record_count += accum[table]
accum
end
On Mar 18, 2:06 pm, danhixon <[email protected]> wrote:
> I was trying out the db:push and db:pull commands and had a bad fail
> when trying to push my changes back to heroku. Any suggestions?
>
> (pull worked, made change in database and tried to push it back to
> heroku)
>
> $ heroku db:push sqlite://db/heroku_backup.sqlite3
> Sending schema
> Sending data
> /Library/Ruby/Gems/1.8/gems/taps-0.2.8/lib/taps/client_session.rb:
> 147:in `fetch_tables_info': undefined method `[]=' for 0:Fixnum
> (NoMethodError)
> from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `inject'
> from /Library/Ruby/Gems/1.8/gems/taps-0.2.8/lib/taps/
> client_session.rb:146:in `each'
> from /Library/Ruby/Gems/1.8/gems/taps-0.2.8/lib/taps/
> client_session.rb:146:in `inject'
> from /Library/Ruby/Gems/1.8/gems/taps-0.2.8/lib/taps/
> client_session.rb:146:in `fetch_tables_info'
> from /Library/Ruby/Gems/1.8/gems/taps-0.2.8/lib/taps/
> client_session.rb:99:in `cmd_send_data'
> from /Library/Ruby/Gems/1.8/gems/taps-0.2.8/lib/taps/
> client_session.rb:71:in `cmd_send'
> from /Library/Ruby/Gems/1.8/gems/heroku-0.6/bin/../lib/heroku/
> commands/db.rb:27:in `push'
> from /Library/Ruby/Gems/1.8/gems/heroku-0.6/bin/../lib/heroku/
> commands/db.rb:106:in `taps_client'
> from /Library/Ruby/Gems/1.8/gems/taps-0.2.8/lib/taps/
> client_session.rb:21:in `start'
> from /Library/Ruby/Gems/1.8/gems/heroku-0.6/bin/../lib/heroku/
> commands/db.rb:102:in `taps_client'
> from /Library/Ruby/Gems/1.8/gems/heroku-0.6/bin/../lib/heroku/
> commands/db.rb:26:in `push'
> from /Library/Ruby/Gems/1.8/gems/heroku-0.6/bin/../lib/heroku/
> command.rb:30:in `send'
> from /Library/Ruby/Gems/1.8/gems/heroku-0.6/bin/../lib/heroku/
> command.rb:30:in `run_internal'
> from /Library/Ruby/Gems/1.8/gems/heroku-0.6/bin/../lib/heroku/
> command.rb:10:in `run'
> from /Library/Ruby/Gems/1.8/gems/heroku-0.6/bin/heroku:16
> from /usr/bin/heroku:19:in `load'
> from /usr/bin/heroku:19
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Heroku" 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/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---