Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

JS's latest activity

Wednesday, August 06 2008
767 Incorrect migrations when using pluralize_table_names was updated in Ruby on Rails
  • JS
    • Tag changed from generators, migrations, patch to bug, generators, migrations, patch
    by JS at 10:20 PM

    I attached fixed railties/lib/rails_generator/base.rb

  • JS
    JS commented at 10:12 PM

    I'm sorry, the file name is railties/lib/rails_generator/base.rb

    This does not fix the wrong filename.

  • JS
    • Tag changed from generators, migrations to generators, migrations, patch
    by JS at 10:06 PM

    FIX

    generator.rb lines 237:

    This @tablename = @classnesting.underscore << "" << @tablename

    Should be @tablename = @classnesting.gsub("::", "").gsub("/", "")....

  • JS
    JS created the ticket at 9:37 PM

    This happens both with the latest (2.1) gem version and the latest git version.

    environment.rb:

    config.activerecord.pluralizetable_names = false

    ./script/ge...