dockyard/postgres_ext — pull request #4 by gilltots (2012-07-09 23:44:35+00:00)
Title: add_column fails in active record migration with undefined method `array' for nil:NilClass 

undefined method `array' for nil:NilClass
/Users/gill/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/postgres_ext-0.0.5/lib/postgres_ext/active_record/connection_adapters/postgres_adapter.rb:168:in `add_column_options!'
/Users/gill/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1020:in `add_column'

with a migration that looks like:

add_column :table_blah, :name, :string

There's a spec to show that breaking (if you remove the patch to postgres_ext/active_record/connection_adapters/postgres_adapter.rb) and the adapter has been patched to hopefully fix the issue.

Someone please look over this, I am not familiar with this code - the tests all pass, but i don't want to be doing something stupid.