Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4645

ruby on rails soft deleting is not working properly and it is included in queries

$
0
0

I am begginer wirh ruby on rails and start working on an already designed webapp build with ruby on rails (ruby v3.0.4 and rails v7.0.4).Recently I noticed that soft deleted records are now displayed in my index list. I checked my postgress table and I can see that the column deleted_at is populated correctly for soft deleted records and not null as before.For example, Usually if I apply simple queries as Submit.count or Submit.where("id >?", value), soft deleted records are not included in the output of the query. This has recently changed and I am not sure why and how to solve that.What could be the reason behind this change? can anyone help me with some explanation.

Here are some of the gems used in this webapp:active_interaction (5.2.0), activemodel (7.0.4), activesupport (7.0.4), paranoia (2.6.1), zeitwerk (2.6.6), cancancan (3.4.0)


Viewing all articles
Browse latest Browse all 4645

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>