Devoured By Lions

the eternal struggle to tame complexity

ActiveRecord Types

If you run into an error like this from Rails:

undefined method `amount’ for #


…check that you have your ActiveRecord column types correct in your migration. For example, :integer, not :int. Apparently db:migrate does not warn about using invalid column types.