Skip to content

Instantly share code, notes, and snippets.

@xxx
Created February 13, 2013 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xxx/42b8f7b76393bdd2f17b to your computer and use it in GitHub Desktop.
Save xxx/42b8f7b76393bdd2f17b to your computer and use it in GitHub Desktop.
== ConvertLoginAndSlugToCitext: migrating ====================================
-- change_column(:users, :login, :citext)
rake aborted!
An error has occurred, this and all later migrations canceled:
can't dup NilClass
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/schema_statements.rb:474:in `dup'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/schema_statements.rb:474:in `type_to_sql'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:1091:in `type_to_sql'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:1033:in `change_column'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/seamless_database_pool-1.0.12/lib/active_record/connection_adapters/seamless_database_pool_adapter.rb:336:in `proxy_connection_method'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/seamless_database_pool-1.0.12/lib/active_record/connection_adapters/seamless_database_pool_adapter.rb:122:in `block in change_column'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/seamless_database_pool-1.0.12/lib/active_record/connection_adapters/seamless_database_pool_adapter.rb:243:in `use_master_connection'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/seamless_database_pool-1.0.12/lib/active_record/connection_adapters/seamless_database_pool_adapter.rb:121:in `change_column'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:466:in `block in method_missing'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:438:in `block in say_with_time'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:438:in `say_with_time'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:458:in `method_missing'
/data/stipple/releases/20130213192440/db/migrate/20130128231642_convert_login_and_slug_to_citext.rb:5:in `up'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:410:in `block in migrate'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:389:in `migrate'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:528:in `migrate'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:775:in `call'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:775:in `block in ddl_transaction'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/seamless_database_pool-1.0.12/lib/active_record/connection_adapters/seamless_database_pool_adapter.rb:336:in `proxy_connection_method'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/seamless_database_pool-1.0.12/lib/active_record/connection_adapters/seamless_database_pool_adapter.rb:122:in `block in transaction'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/seamless_database_pool-1.0.12/lib/active_record/connection_adapters/seamless_database_pool_adapter.rb:243:in `use_master_connection'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/seamless_database_pool-1.0.12/lib/active_record/connection_adapters/seamless_database_pool_adapter.rb:121:in `transaction'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:in `transaction'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:775:in `ddl_transaction'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:719:in `block in migrate'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:700:in `each'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:700:in `migrate'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:570:in `up'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/migration.rb:551:in `migrate'
/data/stipple/shared/bundled_gems/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/railties/databases.rake:179:in `block (2 levels) in <top (required)>'
/data/stipple/releases/20130213192440/ey_bundler_binstubs/rake:16:in `load'
/data/stipple/releases/20130213192440/ey_bundler_binstubs/rake:16:in `<main>'
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