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.

This project is archived and is in readonly mode.

scaffold camelize before pluralize

#1611

Scaffold didn't created Migration class name correctly: it should be "CreateTiposDeProva" instead of "CreateTipoDeProvas" plural should have gone in the middle of the sentence.

my definitions:

ActiveSupport::Inflector.pluralize('tipo_de_prova').camelize

plural in the middle of sentence

ActiveSupport::Inflector.inflections do |inflect| inflect.irregular 'tipo_de_prova', 'tipos_de_prova' inflect.plural 'tipo_de_prova', 'tipos_de_prova' inflect.singular 'tipos_de_prova', 'tipo_de_prova' end

when checking migrations, only class name wasn't OK:

class CreateTipoDeProvas < ActiveRecord::Migration def self.up

create_table :tipos_de_prova do |t|

...

end

Reported by João Paulo Freire · December 21st, 2008 @ 01:34 PM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • State changed from new to wontfix

    Don't think the name of the migration class should matter.

    March 12th, 2009 @ 04:01 PM