Open prp-e opened 1 year ago
You probably figured something out by now. I haven't looked much further, but it seems this might do the job: https://stackoverflow.com/questions/38112379/disable-postgresql-foreign-key-checks-for-migrations
To quote a top stackoverflow answer by andro83:
For migration, it is easier to disable all triggers with:
SET session_replication_role = 'replica';
And after migration reenable all with
SET session_replication_role = 'origin';
Greetings. I'm using rails 7.0.4 and I accidentally removed my production sqlite3 file. Since I used
yaml_db
in order to keep a dump for my database, I reminded of the file and tried to recover it. For some obvious reasons, we've decided to move our code base to postgresql and when I set everything up, it works fine. So, when I runrails db:data:load
command, I get this error:What should I do now?
Explanation about the
credit_pack
model : It's something which every user has. So I don't know why this dataloader thingy tries to first create them then users.