I have a legacy database with a column named ‘class’ which is causing
Rails problems. Renaming the column isn’t an option and the workarounds
I’ve seen so far don’t suit.
I’m running rails 2.0.2 and an example of the error thrown looks like
undefined method `generated_methods’ for “ADD”:String
(The value returned in the ‘class’ column is ‘ADD’ in this case.
Can anyone suggest a nice, neat, dry, satisfying solution?