Skip to content

Instantly share code, notes, and snippets.

@andrewliebchen
Created February 21, 2013 17:48
Show Gist options
  • Save andrewliebchen/5006658 to your computer and use it in GitHub Desktop.
Save andrewliebchen/5006658 to your computer and use it in GitHub Desktop.
== ConvertNotifications: migrating ===========================================
-- execute("select * from notifications")
-> 0.0016s
"2013-02-21 12:43:14 -0500) 0"
rake aborted!
An error has occurred, this and all later migrations canceled:
super: no superclass method `occurred_at' for #<Event:0x007fc68f4198c8>
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activemodel-3.2.11/lib/active_model/attribute_methods.rb:404:in `method_missing'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/attribute_methods.rb:149:in `method_missing'
/sites/fdn/app/models/event.rb:9:in `occurred_at'
/sites/fdn/app/models/event_base.rb:39:in `ensure_occurred_at'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:407:in `_run__1971493909464219892__create__967052565070984229__callbacks'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/callbacks.rb:268:in `create'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/persistence.rb:348:in `create_or_update'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:447:in `_run__1971493909464219892__save__967052565070984229__callbacks'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/callbacks.rb:264:in `create_or_update'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/persistence.rb:104:in `save!'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/validations.rb:56:in `save!'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/transactions.rb:264:in `block in save!'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/transactions.rb:208:in `transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/newrelic_rpm-3.5.4.34/lib/new_relic/agent/method_tracer.rb:493:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/newrelic_rpm-3.5.4.34/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/newrelic_rpm-3.5.4.34/lib/new_relic/agent/method_tracer.rb:488:in `transaction_with_trace_ActiveRecord_self_name_transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/transactions.rb:264:in `save!'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/validations.rb:41:in `create!'
/sites/fdn/db/migrate/20130211135625_convert_notifications.rb:88:in `find_or_create_event'
/sites/fdn/db/migrate/20130211135625_convert_notifications.rb:102:in `notify_for_user_event'
/sites/fdn/db/migrate/20130211135625_convert_notifications.rb:44:in `create_performance_notification'
/sites/fdn/db/migrate/20130211135625_convert_notifications.rb:20:in `block in up'
/sites/fdn/db/migrate/20130211135625_convert_notifications.rb:18:in `each'
/sites/fdn/db/migrate/20130211135625_convert_notifications.rb:18:in `each_with_index'
/sites/fdn/db/migrate/20130211135625_convert_notifications.rb:18:in `up'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:410:in `block in migrate'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:389:in `migrate'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:528:in `migrate'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:775:in `call'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:775:in `block in ddl_transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/transactions.rb:208:in `transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/newrelic_rpm-3.5.4.34/lib/new_relic/agent/method_tracer.rb:493:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/newrelic_rpm-3.5.4.34/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/newrelic_rpm-3.5.4.34/lib/new_relic/agent/method_tracer.rb:488:in `transaction_with_trace_ActiveRecord_self_name_transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:775:in `ddl_transaction'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:719:in `block in migrate'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:700:in `each'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:700:in `migrate'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:570:in `up'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/migration.rb:551:in `migrate'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/railties/databases.rake:179:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(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