I have a table of 2 fields. Word and time stamp. Then I have this array that contains a few words. How to delete all records in the table that match the words in the array? Suppose the model is called "Word."
Any ideas on how to achieve this? perhaps loop through the array and run some destruction requests. Can someone direct me here? thanks
ruby ruby-on-rails rails-activerecord
Maxsy
source share