search for: 001_create_foo_bars

Displaying 1 result from an estimated 1 matches for "001_create_foo_bars".

2006 Jun 02
1
Grouping models - table name conflicts
...nerate model foo/bar ruby script/generate model baz/bar then the generator has no problem making app/models/foo/bar.rb and app/models/baz/bar.rb, however the migrate files it creates both try to "create_table :bars" I thought this was strange because the migrate files have unique names, 001_create_foo_bars.rb, 002_create_baz_bars.rb I appreciate that it''s often a good idea to keep all models directly in app/models/ but I couldn''t see a reason that everything supports the option to group models, except for the migration. What am I missing? Cheers, Gareth