以此来更新您的范围,这应该解决歧义。
scope :created_this_week, -> { where("vacancies.created_at >= ?", Time.zone.now.beginning_of_week) }