When restoring a production database we also include the table ar_internal_metadata. We should either ignore it by default, or overwrite the value to current environment.
select * from ar_internal_metadata;
key | value | created_at | updated_at
-------------+------------+----------------------------+----------------------------
environment | production | 2021-09-25 23:25:47.180765 | 2021-09-25 23:25:47.180765
(1 row)
When restoring a production database we also include the table
ar_internal_metadata. We should either ignore it by default, or overwrite the value to current environment.