Forum: Ruby on Rails Scaffold and foreign keys

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
86870beed637fb9723201a4794596c18?d=identicon&s=25 phirefly (Guest)
on 2007-05-27 16:14
(Received via mailing list)
Hello,
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?

Thanks.
A47e0a6beeb9d048ff054fc1c3a97418?d=identicon&s=25 Walter Davis (walterdavis)
on 2007-05-27 16: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.

Walter
86870beed637fb9723201a4794596c18?d=identicon&s=25 phirefly (Guest)
on 2007-05-28 16:58
(Received via mailing list)
Thanks, I'll try that...
This topic is locked and can not be replied to.