ActiveRecord Types Mar 9th, 2010 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.