Rails Generate Model not using inflection rule

Viewed 536

I'm trying to generate a 'Status' model in Rails 5.1 and when I run

rails generate model status

I get

The model name 's' was recognized as a plural, using the singular '' instead. Override with --force-plural or setup custom inflection rules for this noun before running the generator.

I then added a new rule in config/initializers/inflections.rb

ActiveSupport::Inflector.inflections(:en) do |inflect|
  inflect.irregular 'status', 'statuses'
end

ran the command again and I still get the error.

What am I missing?

1 Answers
Related