db:migrate task calls methods on uninitialized module #12835

Closed
bwheeler96 opened this Issue Nov 10, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@bwheeler96

rake aborted!
An error has occurred, all later migrations canceled:

uninitialized constant ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::ChangeColumnDefinition/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:677:in `change_column_sql'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:508:in `change_column'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:625:in `block in method_missing'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:597:in `block in say_with_time'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:597:in `say_with_time'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:617:in `method_missing'
/home/rails/db/migrate/20131110224309_change_tweet_id_type.rb:3:in `change'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:571:in `exec_migration'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:555:in `block (2 levels) in migrate'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:554:in `block in migrate'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:553:in `migrate'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:728:in `migrate'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:968:in `block in execute_migration_in_transaction'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:1016:in `ddl_transaction'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:967:in `execute_migration_in_transaction'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:929:in `block in migrate'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:925:in `each'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:925:in `migrate'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:783:in `up'
/home/rails/vendor/bundle/ruby/2.0.0/bundler/gems/rails-44406d1e7706/activerecord/lib/active_record/migration.rb:761:in `migrate'

rafaelfranca added a commit that referenced this issue Nov 11, 2013

Merge pull request #12844 from akalyaev/bugfix/12835-autoload-change-…
…column-definition

autoload ChangeColumnDefinition (Fixes #12835)

lukaszx0 added a commit to lukaszx0/rails that referenced this issue Nov 20, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment