我正试图在我的模型上创造一个活力,我希望其中的一个州是“新的”。enum status: { stale: 0, new: 1, converted: 2 }You tried to define an enum named "status" on the model "Lead", but this will generate a class method "new", which is already defined by Active Record.
我明白为什么会发生这种事,但我想知道是否没有