Active Record Where Year of Date Field Greater Than Equal Current Year

前端 未结 0 978
予麋鹿
予麋鹿 2020-12-10 00:36

I\'m using rails 5.0 and ruby 2.6.4

How do I use active record to get all records where the year part of a date-field is >= the current y

相关标签:
回答
  • 消灭零回复
提交回复
热议问题