Help with undefined method error on character

Faraday
Tue, 18 Sep 2018 03:04:54 +0000

That’s a common error if you don’t do the little dance necessary when removing a database field that already has data in it. Here’s what to do:

1. Put the field back the way it was, but without the DataType stuff. Just make it a regular string.

2. Do a database query (either using tinker or the ruby command) to set everyone’s value for that field to nil.

3. Now you can safely remove the field.

For more info on why this happens and some more detailed code examples, see Removing a Database Field.