JS
Not a member
JS's latest activity
Wednesday, August 06 2008
767
Incorrect migrations when using pluralize_table_names
was updated
in Ruby on Rails
-
- Tag changed from generators, migrations, patch to bug, generators, migrations, patch
I attached fixed railties/lib/rails_generator/base.rb
-
JS commented at 10:12 PMI'm sorry, the file name is railties/lib/rails_generator/base.rb
This does not fix the wrong filename.
-
- Tag changed from generators, migrations to generators, migrations, patch
FIX
generator.rb lines 237:
This @tablename = @classnesting.underscore << "" << @tablename
Should be @tablename = @classnesting.gsub("::", "").gsub("/", "")....
-
JS created the ticket at 9:37 PMThis happens both with the latest (2.1) gem version and the latest git version.
environment.rb:
config.activerecord.pluralizetable_names = false
./script/ge...