Set the caller location as comments to your SQL.
Install it directly using gem:
gem install sequel_caller_location
Or adding it to your Gemfile
:
gem "sequel_caller_location"
A straightforward example, this will let sequel_caller_location add the caller location automatically:
DB.extension(:caller_location)