Forum: Ruby on Rails Scaffold and foreign keys

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
phirefly (Guest)
on 2007-05-27 18:14
(Received via mailing list)
I create a migration to add a foreign key 'page_id' to a table
'main_sections'. After running the migration and adding the column,
the scaffol that I have on the main_setions table does not add the
foreign key into the CRUD.

Any ideas why this is the case?

Walter D. (Guest)
on 2007-05-27 18:19
(Received via mailing list)
I think you have to re-run scaffolding to see anything new. It's a
generator, and creates a static snapshot of the current structure,
not a run-time-automatic-introspecting view which would update each
time something changed about the structure.

phirefly (Guest)
on 2007-05-28 18:58
(Received via mailing list)
Thanks, I'll try that...
This topic is locked and can not be replied to.