I have a model TestRun that has an array entry :machine_ids that is an array of integers. How will I be able to call find with conditions so that I can find the specific TestRun entry whose field :machine_ids has a specific array entry mid and a :status "Running".
This is a rough outline of what I want. I do not know how to format the conditions for finding if the array contains mid.
cur_testrun = TestRun.find(:first, :conditions => {:machine_ids => mid, :status => "Running"})