私は次のようなモデルを持っています:
class CashPayment < ActiveRecord::Base
.....
**enum status: [:processing, :paid, :invalid,:refund]**
end
ここで、cash_payment の無効なステータスを宣言しましたが、次のようなエラーが表示されます。
*** 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