You need to turn off cache classes. It's an issue with rails that is fixed in 2.3.
greghauptmann wrote: > Hi, > > Any ideas why (just trying to migrate a Rails app to the prod server) > that "rake db:drop" & "rake db:migrate" etc aren't working due to the > below mentioned mysql error? Obviously this error shouldn't be coming > up as it's not possible to have had the tables in place prior to the > "rake db:migrate" not working. Works fine in development. > > If you look at the stack trace the first non-Rails line seems to be > ActiveScaffold > > Any ideas? > > > [r...@home current]# rake db:migrate RAILS_ENV=production --trace > (in /u/apps/equity/releases/20090208104618) > ** Invoke db:migrate (first_time) > - Hide quoted text - > ** Invoke environment (first_time) > ** Execute environment > rake aborted! > Mysql::Error: Table 'equity_production.accounts' doesn't exist: SHOW > FIELDS FROM `accounts` > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ > connection_adapters/abstract_adapter.rb:188:in `log' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:309:in `execute' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:440:in `columns' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ > base.rb:1220:in `columns' > /u/apps/equity/releases/20090208104618/vendor/plugins/active_scaffold/ > lib/active_scaffold/config/core.rb:100:in > `initialize_without_calendar_date_select' > /u/apps/equity/releases/20090208104618/vendor/plugins/active_scaffold/ > lib/bridges/calendar_date_select/lib/as_cds_bridge.rb:5:in > `initialize' > /u/apps/equity/releases/20090208104618/vendor/plugins/active_scaffold/ > lib/active_scaffold.rb:56:in `new' > /u/apps/equity/releases/20090208104618/vendor/plugins/active_scaffold/ > lib/active_scaffold.rb:56:in `active_scaffold' > /u/apps/equity/releases/20090208104618/app/controllers/ > account_controller.rb:2 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:155:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:262:in `require_or_load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:221:in `depend_on' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:133:in `require_dependency' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: > 368:in `load_application_classes' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: > 367:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: > 367:in `load_application_classes' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: > 365:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: > 365:in `load_application_classes' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: > 185:in `process' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: > 112:in `send' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: > 112:in `run' > /u/apps/equity/releases/20090208104618/config/environment.rb:13 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:521:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in `require' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/misc.rake:3 > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in > `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in > `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in > `invoke_with_call_chain' > /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in > `invoke_with_call_chain' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in > `invoke_prerequisites' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in > `invoke_prerequisites' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in > `invoke_with_call_chain' > /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in > `invoke_with_call_chain' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in > `invoke' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in > `invoke_task' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in > `top_level' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in > `top_level' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in > `standard_exception_handling' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in > `top_level' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in > `standard_exception_handling' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 > /usr/local/bin/rake:19:in `load' > /usr/local/bin/rake:19 > [r...@home current]# > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
