find_by!
Story.find_by_legacy_id(legacy_id) or raise ActiveRecord::RecordNotFound
You’re doing it really wrong, use the bang version instead, like that: Story.find_by_legacy_id!(legacy_id)
The exception will automatically raised and you don’t need to pollute your code :)