Created
April 19, 2016 11:20
-
-
Save zismailov/d29ff66a43da837fba4d6b6239e4b0a0 to your computer and use it in GitHub Desktop.
Вытащить всех пользователей по месяцу рождения, т.е. всех за январь, февраль и тд
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User.where('extract(month from dateborn) = ?', 2) | |
dateborn поле в таблице |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment