This one took me a while to figure out but if you’re spiking and you want access to you’re Rails models and database inside of your script, you can simply create a spike in your root folder and run it with rails runner as a prefix.

Couldn’t be any easier.