Skip to content

Instantly share code, notes, and snippets.

@joshuaballoch
Created September 21, 2012 02:05
Show Gist options
  • Save joshuaballoch/3759388 to your computer and use it in GitHub Desktop.
Save joshuaballoch/3759388 to your computer and use it in GitHub Desktop.
rake error on populate_chemical_attributes
Joshuas-MacBook-Pro:gigabase joshuaballoch$ rake populate_chemical_attributes --trace
** Invoke populate_chemical_attributes (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute populate_chemical_attributes
rake aborted!
Mysql2::Error: Table 'giga_development.function_translations' doesn't exist: SHOW FULL FIELDS FROM `function_translations`
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/connection_adapters/mysql2_adapter.rb:211:in `execute'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:259:in `execute_and_free'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:426:in `columns'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:228:in `yield'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:228:in `default'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:228:in `columns'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:237:in `columns_hash'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/locking/optimistic.rb:129:in `locking_enabled?'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/relation.rb:170:in `exec_queries'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `block in to_a'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/instance_methods.rb:133:in `translation_for'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/adapter.rb:77:in `fetch_attribute'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/adapter.rb:24:in `block in fetch'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/adapter.rb:23:in `each'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/adapter.rb:23:in `fetch'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/instance_methods.rb:67:in `read_attribute'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/class_methods.rb:114:in `block in translated_attr_accessor'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activemodel-3.2.8/lib/active_model/dirty.rb:154:in `attribute_will_change!'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/instance_methods.rb:49:in `write_attribute'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/class_methods.rb:111:in `block in translated_attr_accessor'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:85:in `block in assign_attributes'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:78:in `each'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:78:in `assign_attributes'
(eval):3:in `block in assign_attributes'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/globalize3-0.2.0/lib/globalize/active_record/instance_methods.rb:170:in `with_given_locale'
(eval):3:in `assign_attributes'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/gems/activerecord-3.2.8/lib/active_record/base.rb:498:in `initialize'
/Users/joshuaballoch/rails_projects/gigabase/lib/tasks/populate_chemical_attributes.rake:84:in `new'
/Users/joshuaballoch/rails_projects/gigabase/lib/tasks/populate_chemical_attributes.rake:84:in `block (2 levels) in <top (required)>'
/Users/joshuaballoch/rails_projects/gigabase/lib/tasks/populate_chemical_attributes.rake:84:in `each'
/Users/joshuaballoch/rails_projects/gigabase/lib/tasks/populate_chemical_attributes.rake:84:in `block in <top (required)>'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/joshuaballoch/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `load'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `<main>'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/bin/ruby_noexec_wrapper:14:in `eval'
/Users/joshuaballoch/.rvm/gems/ruby-1.9.3-p194@gigabase/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => populate_chemical_attributes
@HaroldDay
Copy link

good work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment