Dear all,<br><div class="gmail_quote"><br>As I couldn't find a bug report method on <a href="http://typosphere.org" target="_blank">typosphere.org</a>, 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?
<br><br>This is generating an error when you "ActiveScaffold" the user model. I just commented out the "<span style="color: rgb(0, 0, 0);">, :foreign_key => 'notify_user_id'</span>"...<br><br>
<div style="margin-left: 40px;"><u><b>031_add_notifications_table.rb</b></u><br><br><div style="margin-left: 40px;"> create_table :notifications, :id => false do |t|<br> <span style="color: rgb(255, 0, 0);">t.column
:notify_user_id, :integer</span><br></div><br><u><b>056_create_notifications.rb</b></u><br><br><div style="margin-left: 40px;"> def self.up<br> <span style="color: rgb(255, 0, 0);">rename_table :notifications, :old_notifications
</span><br> create_table :notifications do |t|<br><span style="color: rgb(51, 51, 255);"> t.column :content_id, :integer</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> t.column
:user_id, :integer</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> t.column :created_at, :datetime</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
t.column :updated_at, :datetime</span><br style="color: rgb(51, 51, 255);"> end<br><br> OldNotification.reset_column_information<br> Notification.reset_column_information<br> if $schema_generator<br>
OldNotification.find(:all).each do |on|<br> Notification.create!(on.attributes)<br> end<br> end<br> <span style="color: rgb(255, 0, 0);">drop_table :old_notifications</span><br> end<br></div><br><u><b>
user.rb
</b></u><br>
<br><div style="margin-left: 40px;"> <span style="color: rgb(255, 0, 0);"> has_many :notifications, :foreign_key => 'notify_user_id'</span><br></div>
</div><br><br>Best regards, Ricardo<br>
</div><br>