Skip to content

Add database helpers 'add_timestamps_with_timezone' and 'timestamps_with_timezone'

What does this MR do?

This MR adds:

  1. A database helper add_timestamps_with_timezone based on Rails' add_timestamps method.
  2. A database helper timestamps_with_timezone based on Rails' timestamps method.
  3. A custom datetime_with_timezone data type:
  • for PostgreSQL it converts to timestamptz.
  • for MySQL it converts to timestamp.

Why was this MR needed?

We want to store data with timezone information.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #32054 (closed)

Edited by blackst0ne

Merge request reports

Loading