Created
October 7, 2014 15:15
-
-
Save sanchojaf/aae46e3a0e15edb8bb27 to your computer and use it in GitHub Desktop.
error migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Miguels-MacBook-Air:peach_unified sancho$ rake db:migrate:redo | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/associations.rb:1585: warning: already initialized constant Spree::Store::HABTM_Products | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/associations.rb:1585: warning: previous definition of HABTM_Products was here | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/associations.rb:1585: warning: already initialized constant Spree::Product::HABTM_Stores | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/associations.rb:1585: warning: previous definition of HABTM_Stores was here | |
== 20141006195009 CreateMultipleStores: reverting ============================= | |
== 20141006195009 CreateMultipleStores: reverted (0.0000s) ==================== | |
== 20141006195009 CreateMultipleStores: migrating ============================= | |
rake aborted! | |
StandardError: An error has occurred, this and all later migrations canceled: | |
undefined method `assign_attributes' for nil:NilClass/Users/sancho/Documents/dev/peach/repo/peach_unified/db/migrate/20141006195009_create_multiple_stores.rb:22:in `up' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:598:in `exec_migration' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:579:in `block (2 levels) in migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:578:in `block in migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:577:in `migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:752:in `migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:1038:in `block in ddl_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:1038:in `ddl_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:991:in `execute_migration_in_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:953:in `block in migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:949:in `each' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:949:in `migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:807:in `up' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:785:in `migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/railties/databases.rake:60:in `block (3 levels) in <top (required)>' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/bin/ruby_executable_hooks:15:in `eval' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/bin/ruby_executable_hooks:15:in `<main>' | |
NoMethodError: undefined method `assign_attributes' for nil:NilClass | |
/Users/sancho/Documents/dev/peach/repo/peach_unified/db/migrate/20141006195009_create_multiple_stores.rb:22:in `up' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:598:in `exec_migration' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:579:in `block (2 levels) in migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:578:in `block in migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:577:in `migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:752:in `migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:1038:in `block in ddl_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:1038:in `ddl_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:991:in `execute_migration_in_transaction' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:953:in `block in migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:949:in `each' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:949:in `migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:807:in `up' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/migration.rb:785:in `migrate' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/gems/activerecord-4.1.4/lib/active_record/railties/databases.rake:60:in `block (3 levels) in <top (required)>' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/bin/ruby_executable_hooks:15:in `eval' | |
/Users/sancho/.rvm/gems/ruby-2.1.2@peach_ecom/bin/ruby_executable_hooks:15:in `<main>' | |
Tasks: TOP => db:migrate | |
(See full trace by running task with --trace) | |
Miguels-MacBook-Air:peach_unified sancho$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment