Marcus Crowley
Sep 8, 2018 · 1 min read

Thanks, Charles. You explained these things very clearly. I notice that with Rails 5.2, the default value works properly and shouldn’t need the workaround you suggest. In #4 you said, “ Defining default values in ActiveRecord only works part of the time, in particular it won’t work when calling Model.new()”. Would you like to confirm that this now works and update your recommendation?

    Marcus Crowley

    Written by

    Father, husband, founder of democra.me