Fix duplicate entries in Active Storage migation
Fix duplicate entries in Active Storage migation

Using `LASTVAL()` wasn't working 100% of the time for some reason after
inserting and deleting some rows. So we're using `RETURNING` instead.

consul/consul,consul/consul,consul/consul,consul/consul,consul/consul