I have a model as:
class CashPayment < ActiveRecord::Base
.....
**enum status: [:processing, :paid, :invalid,:refund]**
end
Here,I have declared invalid status for cash_payment.But its giving me as error like:
*** ArgumentError Exception: You tried to define an enum named "status" on the model "CashPayment", but this will generate a instance method "invalid?", which is already defined by Active Record