I have a column called school_id in a table called records.
Now I have an array of school_ids and I want to delete all the records that has the following ids that belong to the array.
The question is, is there a way to do it with just one line of command? Like:
Record.delete_all(:school_id => [1, 2, 3, 4])?
Right now I'm doing a looping here and as much as possible I'm trying to simplify that part. TIA