Skip to content

Instantly share code, notes, and snippets.

@blvrd
Created July 2, 2013 20:22
Show Gist options
  • Save blvrd/5912771 to your computer and use it in GitHub Desktop.
Save blvrd/5912771 to your computer and use it in GitHub Desktop.
Strange error
Garretts-MacBook-Pro:myflix-jun-2013 Garrett$ heroku run rake db:seed
Running `rake db:seed` attached to terminal... up, run.4169
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
Connecting to database specified by DATABASE_URL
rake aborted!
PG::Error: ERROR: value too long for type character varying(255)
: INSERT INTO "videos" ("category_id", "created_at", "description", "large_cover_url", "small_cover_url", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/postgresql_adapter.rb:1166:in `get_last_result'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/postgresql_adapter.rb:1166:in `exec_cache'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/postgresql_adapter.rb:663:in `block in exec_query'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/postgresql_adapter.rb:661:in `exec_query'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/database_statements.rb:63:in `exec_insert'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/database_statements.rb:90:in `insert'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/relation.rb:66:in `insert'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/persistence.rb:367:in `create'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/timestamp.rb:58:in `create'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/callbacks.rb:268:in `block in create'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:403:in `_run__2371081273336479112__create__3121106600187862919__callbacks'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/callbacks.rb:268:in `create'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/persistence.rb:348:in `create_or_update'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:425:in `_run__2371081273336479112__save__3121106600187862919__callbacks'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/callbacks.rb:264:in `create_or_update'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/persistence.rb:84:in `save'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/validations.rb:50:in `save'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/attribute_methods/dirty.rb:22:in `save'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/transactions.rb:259:in `block (2 levels) in save'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/transactions.rb:208:in `transaction'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/transactions.rb:259:in `block in save'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/transactions.rb:258:in `save'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/persistence.rb:45:in `create'
/app/db/seeds.rb:15:in `<top (required)>'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/engine.rb:520:in `load_seed'
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.11/lib/active_record/railties/databases.rake:333: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