I have a movies table in the database with separate columns (integers) for month and year of release date.
I want to get all the movies with the release date from 09/2016 till 02/2017.
This query won't work because of other unwanted results:
Movie.where(month: [09, 10, 11, 12, 1, 2], year: [2016, 2017])
How do I query making pairs of month & year?