Now that we're dropping pre 4.2 support, would be nice to use an enum in User instead of the older active flag.
Proposed states:
class User < ActiveRecord::Base
include Challah::Userable
enum status: %w( active inactive )
end
This would keep the active? attribute as before, but use the new data type. This would be a breaking database change so it will need to provide an upgrade path or keep backward compatibility.
Now that we're dropping pre 4.2 support, would be nice to use an enum in User instead of the older active flag.
Proposed states:
This would keep the
active?
attribute as before, but use the new data type. This would be a breaking database change so it will need to provide an upgrade path or keep backward compatibility.