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
|