pimeys/c2dm_on_rails — pull request #6 by heisenmink (2012-05-14 19:10:50+00:00)
Title: Fix "Could not find table 'c2dm_bases'" error

I got this stacktrace (running latest stable ruby, rails and gems):

/var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/connection_adapters/sqlite_adapter.rb:465:in `table_structure': Could not find table 'c2dm_bases' (ActiveRecord::StatementInvalid)
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/connection_adapters/sqlite_adapter.rb:346:in `columns'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/connection_adapters/schema_cache.rb:12:in `initialize'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/model_schema.rb:228:in `call'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/model_schema.rb:228:in `default'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/model_schema.rb:228:in `[]'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/model_schema.rb:228:in `columns'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/model_schema.rb:248:in `column_names'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_methods.rb:66:in `define_attribute_methods'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_methods.rb:63:in `synchronize'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_methods.rb:63:in `define_attribute_methods'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_methods.rb:65:in `define_attribute_methods'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_methods.rb:63:in `synchronize'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_methods.rb:63:in `define_attribute_methods'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_methods.rb:167:in `respond_to?'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_assignment.rb:81:in `assign_attributes'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_assignment.rb:78:in `each'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/attribute_assignment.rb:78:in `assign_attributes'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/base.rb:495:in `initialize'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/persistence.rb:44:in `new'
from /var/lib/gems/1.8/gems/activerecord-3.2.2/lib/active_record/persistence.rb:44:in `create'
from makedevice.rb:3
from /var/lib/gems/1.8/gems/railties-3.2.2/lib/rails/commands.rb:64:in `eval'
from /var/lib/gems/1.8/gems/railties-3.2.2/lib/rails/commands/runner.rb:51
from /var/lib/gems/1.8/gems/railties-3.2.2/lib/rails/commands.rb:64:in `require'
from /var/lib/gems/1.8/gems/railties-3.2.2/lib/rails/commands.rb:64
from script/rails:6:in `require'
from script/rails:6