Make year optional(mm/dd) while typecasting activerecord date type

This will make the year option while initiating any active record object with date type just like it is there for datetime.

i.e User.new(created_at: '07/15')

or user  = User.new
user.assign_attributes(created_at: '07/15')