Skip to content

Instantly share code, notes, and snippets.

@helloluis
Created July 17, 2011 10:46
Show Gist options
  • Save helloluis/1087448 to your computer and use it in GitHub Desktop.
Save helloluis/1087448 to your computer and use it in GitHub Desktop.
== UpdateArchivedSaChildSocialActivities: migrating ==========================
rake aborted!
An error has occurred, 20110629072738 and all later migrations canceled:
undefined method `has_key?' for "beach":String
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:149:in `block (2 levels) in apply_default_attributes'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:148:in `each_pair'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:148:in `block in apply_default_attributes'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:147:in `tap'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:147:in `apply_default_attributes'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/document.rb:262:in `block in instantiate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/document.rb:260:in `tap'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/document.rb:260:in `instantiate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/factory.rb:34:in `from_db'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/relations/builders/embedded/many.rb:24:in `block (2 levels) in build'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/relations/builders/embedded/many.rb:23:in `tap'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/relations/builders/embedded/many.rb:23:in `block in build'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/relations/builders/embedded/many.rb:22:in `each'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/relations/builders/embedded/many.rb:22:in `inject'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/relations/builders/embedded/many.rb:22:in `build'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/relations/accessors.rb:59:in `create_relation'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/relations/accessors.rb:26:in `build'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/relations/accessors.rb:131:in `block (2 levels) in getter'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/validations.rb:30:in `read_attribute_for_validation'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activemodel-3.0.4/lib/active_model/validator.rb:152:in `block in validate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activemodel-3.0.4/lib/active_model/validator.rb:151:in `each'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activemodel-3.0.4/lib/active_model/validator.rb:151:in `validate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.4/lib/active_support/callbacks.rb:314:in `_callback_before_184'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.4/lib/active_support/callbacks.rb:449:in `_run_validate_callbacks'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activemodel-3.0.4/lib/active_model/validations.rb:212:in `run_validations!'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activemodel-3.0.4/lib/active_model/validations/callbacks.rb:67:in `block in run_validations!'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.4/lib/active_support/callbacks.rb:413:in `_run_validation_callbacks'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activemodel-3.0.4/lib/active_model/validations/callbacks.rb:67:in `run_validations!'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activemodel-3.0.4/lib/active_model/validations.rb:179:in `valid?'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/validations.rb:50:in `valid?'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/activemodel-3.0.4/lib/active_model/validations.rb:187:in `invalid?'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/persistence/update.rb:44:in `persist'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/persistence.rb:89:in `update'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/persistence.rb:150:in `upsert'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/persistence.rb:117:in `update_attributes'
/Users/luis/Sites/infinitely/builder/db/migrate/20110629072738_update_archived_sa_child_social_activities.rb:4:in `block in up'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/contexts/mongo.rb:177:in `block in iterate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/cursor.rb:49:in `block in each'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongo-1.3.1/lib/mongo/cursor.rb:249:in `each'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/cursor.rb:48:in `each'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/contexts/mongo.rb:177:in `iterate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/criteria.rb:116:in `block in each'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/criteria.rb:116:in `tap'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/criteria.rb:116:in `each'
/Users/luis/Sites/infinitely/builder/db/migrate/20110629072738_update_archived_sa_child_social_activities.rb:3:in `up'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_rails_migrations-0.0.10/lib/mongoid_rails_migrations/active_record_ext/migrations.rb:85:in `block in migrate'
/Users/luis/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/benchmark.rb:294:in `measure'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_rails_migrations-0.0.10/lib/mongoid_rails_migrations/active_record_ext/migrations.rb:85:in `migrate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_rails_migrations-0.0.10/lib/mongoid_rails_migrations/active_record_ext/migrations.rb:169:in `migrate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_rails_migrations-0.0.10/lib/mongoid_rails_migrations/active_record_ext/migrations.rb:319:in `block in migrate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_rails_migrations-0.0.10/lib/mongoid_rails_migrations/active_record_ext/migrations.rb:297:in `each'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_rails_migrations-0.0.10/lib/mongoid_rails_migrations/active_record_ext/migrations.rb:297:in `migrate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_rails_migrations-0.0.10/lib/mongoid_rails_migrations/active_record_ext/migrations.rb:203:in `up'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_rails_migrations-0.0.10/lib/mongoid_rails_migrations/active_record_ext/migrations.rb:188:in `migrate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/mongoid_rails_migrations-0.0.10/lib/mongoid_rails_migrations/mongoid_ext/railties/database.rake:42:in `block (2 levels) in <top (required)>'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/task.rb:205:in `block in execute'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/luis/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/application.rb:90:in `block (2 levels) in top_level'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/application.rb:90:in `block in top_level'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/application.rb:62:in `block in run'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:in `load'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment