Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 69931
BY: Noel Gomez (noel_gomez)
DATE: 2009-05-02 03:05
SUBJECT: error w/ remove_column column type=reference

 

if you have a migration with:

self.up
add_column :table, :x, :reference

self.down

remove_column :table, :x

the rollback will fail.

error is:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.to_sym

~/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/schema_definitions.rb:467:in `column'

Looks to me like it does not have a translation for "rerence" to references when the table is being copied.

I'm pretty new to rails, but thinking the error is in sqlite_adapter.rb

willing to work with someone to try to correct this, but as I said, I am still a newb


Thread View

Thread Author Date
error w/ remove_column column type=referenceNoel Gomez2009-05-02 03:05

Post a followup to this message