[openstreetmap/openstreetmap-website] Alias the user creation_time column (PR #3402)
Andy Allan
notifications at github.com
Wed Dec 22 14:53:55 UTC 2021
This allows rails to set the created_at automatically, and so avoids us from having to do so in a callback. It also hides the unusual db column name from the rest of the app.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/3402
-- Commit Summary --
* Alias the user creation_time column
-- File Changes --
M app/models/user.rb (11)
M app/views/api/users/_user.json.jbuilder (2)
M app/views/api/users/_user.xml.builder (2)
M app/views/users/_user.html.erb (4)
M app/views/users/show.html.erb (2)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/3402.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3402.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3402
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3402 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20211222/38165ac1/attachment.htm>
More information about the rails-dev
mailing list