Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Act as paranoid is not recovering records

I was trying to recover an object from my admin mode and it did not work

 Admin.only_deleted.first.recover
  Admin Load (1.9ms)  SELECT "admins".* FROM "admins" WHERE ("admins"."deleted_at" IS NOT NULL) ORDER BY "admins"."id" ASC LIMIT 1
NoMethodError: undefined method `recover' for #<Admin:0xa57f10c>

Any idea?

like image 353
emerak Avatar asked Oct 08 '14 21:10

emerak


1 Answers

There is now a restore, rather than recover, but its not correctly recovering the dependent records which is a real pain

like image 99
Chrissy H Avatar answered Sep 23 '22 03:09

Chrissy H