4 ms·
I was teaching a coworker about activerecord, and he was trying to create some simple throw-away models to gain familiarity. He decided to name his model "Cow.
by aetherson 14y ago
I was teaching a coworker about activerecord, and he was trying to create some simple throw-away models to gain familiarity. He decided to name his model "Cow." Fine, so we create the db table cows and run migrate and try a little command line business -- and we can't successfully save, with pg errors about missing elements in some pg system table called "kine."
Cue fifteen minutes of frustrated googling and trying to figure out the problem.
Eventually, I write "cow".pluralize, and rails helpfully informs me that the plural of cow is kine. Aaaargh.
- mratzloff 14y agohttp://rails.lighthouseapp.com/projects/8994/tickets/1323-plural-of-cow-isnt-kine-anymore http://rails.lighthouseapp.com/projects/8994/tickets/1323-pl...