2 months ago
Hi all, I have a rather simple app, models after a CRM.
Yesterday, I was updating the domain urls for othe DBs to postgres, and all of my data dissapeared? Tables are intact, but all input data to the CRM is gone.
Is there a great way to rollback or get that data back?
2 Replies
2 months ago
if you don't have a backup I don't think you can....One thing you can check is, if by any chance you are on a wrong db or on a wrong schema...
I was on the "free" plan, just upgraded to Pro for that reason.
The only thing I really did was switch from HTTP connection to TCP, and when I redeployed, the data was gone, structure intact. It was test data anyways, but im trying to learn from my mistake so when make this prod ready, I dont make the same mistake.
2 months ago
This might be stupid but by any chance are you using a different database name? Migrations might have applied and it would look as though the data is missing
2 months ago
using the Railway CLI if you copy ssh command and enter it in your terminal you can list all databases with psql -l (iirc).

2 months ago
Wonderful, and in your connection string are you connecting to postgres or railway. Unsure what template0 and template1 are
2 months ago
Yeah unsure if you connected to a different database in the main instance. It might not be the case and something might have gone wrong but it happens sometimes so worth checking.
Cool, I honestly think when I was messing with domainurl and domainpubluc_url I created a mess that I am trying to untangle
2 months ago
Well if that's the case and you havent made a manual backup or used the railway specific backup feature there is sadly nothing we can do to restore that data.
I wish I had a better answer but that is unfortunately the way it is.
2 months ago
do you have a "reset" migrations script somewhere?
