Orphan reference to deleted db column?

Dear all,

As I couldn’t find a bug report method on typosphere.org, here it goes!
Did
anyone notice the reference to “notify_user_id” in user.rb and the
actual
lack of this column in the notifications table? Or am I missing
something?

This is generating an error when you “ActiveScaffold” the user model. I
just
commented out the “, :foreign_key => ‘notify_user_id’”…

031_add_notifications_table.rb

create_table :notifications, :id => false do |t|
  t.column :notify_user_id, :integer

056_create_notifications.rb

def self.up
rename_table :notifications, :old_notifications
create_table :notifications do |t|
t.column :content_id, :integer
t.column :user_id, :integer
t.column :created_at, :datetime
t.column :updated_at, :datetime
end

OldNotification.reset_column_information
Notification.reset_column_information
if $schema_generator
  OldNotification.find(:all).each do |on|
    Notification.create!(on.attributes)
  end
end
drop_table :old_notifications

end

*user.rb *

has_many :notifications, :foreign_key => ‘notify_user_id’

Best regards, Ricardo

On 11/14/07, joy ride [email protected] wrote:

As I couldn’t find a bug report method on typosphere.org, here it goes!

I guess a ticket in the Typo trac would be the way or even:
http://trac.typosphere.org/wiki/PatchingGuide

But it seems the trac is kind of broken. At least I couldn’t register.
It’s unfortunate concering there might be a horde of contributions
coming in at least if Stuart Halloway’s workshops, where he shows how
to make six test driven changes to Typo in four hours, has any impact.
Learn more about that by listening to the podcast:
http://podcast.rubyonrails.org/programs/1/episodes/stuart-halloway