Skip to content

Instantly share code, notes, and snippets.

@willbarrett
Created May 31, 2014 20:17
Show Gist options
  • Save willbarrett/d8009167b6c5cbb5ebd9 to your computer and use it in GitHub Desktop.
Save willbarrett/d8009167b6c5cbb5ebd9 to your computer and use it in GitHub Desktop.
ActiveRecord::RecordInvalid: Validation failed: Name cannot be a number
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/validations.rb:56:in `save!'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/transactions.rb:264:in `block in save!'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/transactions.rb:208:in `transaction'
/app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.8.0.218/lib/new_relic/agent/method_tracer.rb:549:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
/app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.8.0.218/lib/new_relic/agent/method_tracer.rb:281:in `trace_execution_scoped'
/app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.8.0.218/lib/new_relic/agent/method_tracer.rb:544:in `transaction_with_trace_ActiveRecord_self_name_transaction'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/transactions.rb:264:in `save!'
/app/app/models/chat/stream.rb:82:in `ensure_default_for_organization!'
/app/app/models/organization.rb:196:in `streams'
/app/config/initializers/z_enabler.rb:6:in `block (2 levels) in <top (required)>'
/app/vendor/bundle/ruby/2.0.0/gems/enabler-0.0.5/lib/enabler.rb:18:in `call'
/app/vendor/bundle/ruby/2.0.0/gems/enabler-0.0.5/lib/enabler.rb:18:in `enable!'
/app/lib/tasks/sahara.rake:26:in `block (3 levels) in <top (required)>'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/relation/batches.rb:21:in `block (2 levels) in find_each'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/relation/batches.rb:21:in `each'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/relation/batches.rb:21:in `block in find_each'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/relation/batches.rb:72:in `find_in_batches'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/relation/batches.rb:20:in `find_each'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.15/lib/active_record/querying.rb:8:in `find_each'
/app/lib/tasks/sahara.rake:25:in `block (2 levels) in <top (required)>'
Tasks: TOP => sahara:enable_for_all
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment