Answers for "what are active record enum"

0

what are active record enum

class Conversation < ActiveRecord::Base
  enum status: { active: 0, archived: 1 }
end
Posted by: Guest on December-07-2020

Browse Popular Code Answers by Language