The many issues with Rails Enum
Pierre Hersant

This is because you don’t use enum the right way. Pass a hash to your enum and your problem is solved. Easy.

class Conversation < ActiveRecord::Base

enum status: { active: 0, archived: 1 }


Like what you read? Give Emmanuel a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.