svenfuchs/globalize3 — Issue #112: in rails 3.2.2, got missing translations table?
Author: shaokun
Created: 2012-03-04 02:40:48+00:00
State: open

Category Load (0.4ms) SELECT `categories`.* FROM `categories` WHERE (slug LIKE 'abc%')
SQL (0.3ms) INSERT INTO `categories` (`created_at`, `level`, `name`, `parent_id`, `slug`, `updated_at`) VALUES ('2012-03-04 02:37:52', 0, 'abc', NULL, 'abc', '2012-03-04 02:37:52')
Category::Translation Load (0.3ms) SELECT `category_translations`.* FROM `category_translations` WHERE `category_translations`.`category_id` = 21 AND `category_translations`.`locale` = 'en' LIMIT 1
(0.5ms) ROLLBACK
ActiveRecord::StatementInvalid: Mysql2::Error: Table 'xxx_development.translations' doesn't exist: SHOW FULL FIELDS FROM `translations`

/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/associations/collection_proxy.rb:46:in `build'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/globalize3-0.1.0/lib/globalize/active_record/act_macro.rb:42:in `find_or_initialize_by_locale'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/globalize3-0.1.0/lib/globalize/active_record/adapter.rb:40:in `block in save_translations!'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/globalize3-0.1.0/lib/globalize/active_record/adapter.rb:39:in `each'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/globalize3-0.1.0/lib/globalize/active_record/adapter.rb:39:in `save_translations!'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/globalize3-0.1.0/lib/globalize/active_record/instance_methods.rb:126:in `save_translations!'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:409:in `_run__4265495997579565424__create__2839401425864890904__callbacks'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/callbacks.rb:268:in `create'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/persistence.rb:344:in `create_or_update'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:414:in `_run__4265495997579565424__save__2839401425864890904__callbacks'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/callbacks.rb:264:in `create_or_update'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/persistence.rb:104:in `save!'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/validations.rb:56:in `save!'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/transactions.rb:246:in `block in save!'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/transactions.rb:208:in `transaction'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
/Users/abc/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/transactions.rb:246:in `save!'