You may need to do `(options['expected_update_period_in_days'].presence || 2).to_i` so it's an integer.