# pluralization for 'EventSeries' turns into table name 'event\_sery'

**URL:** <https://discuss.rubyonrails.org/t/pluralization-for-eventseries-turns-into-table-name-event-sery/7103>\
**Category:** rubyonrails-talk\
**Created:** [January 12, 2007, 9:26pm UTC](https://discuss.rubyonrails.org/t/pluralization-for-eventseries-turns-into-table-name-event-sery/7103 "2007-01-12T21:26:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Mango](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Thomas\_Mango](https://discuss.rubyonrails.org/u/Thomas_Mango)\
**Post date:** [January 12, 2007, 9:26pm UTC](https://discuss.rubyonrails.org/t/pluralization-for-eventseries-turns-into-table-name-event-sery/7103/1 "2007-01-12T21:26:42Z")

</div>

hello everyone,

while generating the model EventSeries, my migration was generated with the database table name 'event\_sery'. i double checked the pluralization tool located at: [http://nubyonrails.com/tools/pluralize](http://nubyonrails.com/tools/pluralize). I was wondering if anyone has ever come across an issue similar to this one. should i just override the table my model is associated with and change the generated table name to 'event\_series'?

thank you, for your input.

---

<div class="post-metadata">

**Author:** ![Rimantas\_Liubertas](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@Rimantas\_Liubertas](https://discuss.rubyonrails.org/u/Rimantas_Liubertas)\
**Post date:** [January 12, 2007, 11:44pm UTC](https://discuss.rubyonrails.org/t/pluralization-for-eventseries-turns-into-table-name-event-sery/7103/2 "2007-01-12T23:44:36Z")

</div>

> while generating the model EventSeries, my migration was generated with the database table name 'event\_sery'. i double checked the pluralization tool located at: [http://nubyonrails.com/tools/pluralize](http://nubyonrails.com/tools/pluralize). I was wondering if anyone has ever come across an issue similar to this one. should i just override the table my model is associated with and change the generated table name to 'event\_series'?
> 
> thank you, for your input.

a) go to config/environment.rb b) Find Inflector.inflections do |inflect| c) make it look like this:

Inflector.inflections do |inflect| &nbsp;&nbsp;inflect.uncountable %w( series series ) end

d) regenerate model

It should be ok now:

Loading development environment.

> > 'series'.pluralize

=\> "series"

> > 'EventSeries'.tableize

=\> "event\_series"

Regards, Rimantas

---

<div class="post-metadata">

**Author:** ![Thomas\_Mango](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Thomas\_Mango](https://discuss.rubyonrails.org/u/Thomas_Mango)\
**Post date:** [January 15, 2007, 12:18am UTC](https://discuss.rubyonrails.org/t/pluralization-for-eventseries-turns-into-table-name-event-sery/7103/3 "2007-01-15T00:18:55Z")

</div>

Thank you very much for your response. I updated my environment.rb, but take a look what happens now:

environment.rb changes: Inflector.inflections do |inflect| &nbsp;&nbsp;inflect.uncountable %w( series series ) end

console: Loading development environment.

> > 'series'.tableize

=\> "series"

> > 'EventSeries'.tableize

=\> "event\_sery"

Very strange. Any ideas what may be causing this? Thank you, in advance.

---

<div class="post-metadata">

**Author:** ![Mark\_Van\_Holstyn1](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Mark\_Van\_Holstyn1](https://discuss.rubyonrails.org/u/Mark_Van_Holstyn1)\
**Post date:** [January 15, 2007, 12:46am UTC](https://discuss.rubyonrails.org/t/pluralization-for-eventseries-turns-into-table-name-event-sery/7103/4 "2007-01-15T00:46:30Z")

</div>

The ‘ies’ ending fix was is here: [http://dev.rubyonrails.org/changeset/4868](http://dev.rubyonrails.org/changeset/4868)

Mark

---

<div class="post-metadata">

**Author:** ![Thomas\_Mango](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Thomas\_Mango](https://discuss.rubyonrails.org/u/Thomas_Mango)\
**Post date:** [January 15, 2007, 2:01am UTC](https://discuss.rubyonrails.org/t/pluralization-for-eventseries-turns-into-table-name-event-sery/7103/5 "2007-01-15T02:01:16Z")

</div>

That worked great. Thank you very much for your time, I really appreciate it.
