Skip to content

Instantly share code, notes, and snippets.

@ckib16
Created November 17, 2015 20:18
Show Gist options
  • Save ckib16/87136c3ad9a6bcd9aa05 to your computer and use it in GitHub Desktop.
Save ckib16/87136c3ad9a6bcd9aa05 to your computer and use it in GitHub Desktop.
Heroku db:seed error
[14:53]~/wdi/projects/pilot_tracker > heroku run rake db:seed
Running rake db:seed on pilot-tracker... up, run.6160
ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
Location Load (3.3ms) SELECT "locations".* FROM "locations"
rake aborted!
ActiveRecord::UnknownAttributeError: unknown attribute 'emblem_url' for Location.
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/attribute_assignment.rb:59:in `rescue in _assign_attribute'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/attribute_assignment.rb:54:in `_assign_attribute'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/attribute_assignment.rb:41:in `block in assign_attributes'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/attribute_assignment.rb:35:in `each'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/attribute_assignment.rb:35:in `assign_attributes'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/core.rb:564:in `init_attributes'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/core.rb:281:in `initialize'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/inheritance.rb:61:in `new'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/inheritance.rb:61:in `new'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/persistence.rb:33:in `create'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/persistence.rb:31:in `block in create'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/persistence.rb:31:in `collect'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/persistence.rb:31:in `create'
/app/db/seeds.rb:94:in `<top (required)>'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `block in load'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'
/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:547:in `load_seed'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:250:in `load_seed'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/railties/databases.rake:183:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:seed
(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