ruby script inherit model data

Is there a way that a regular cli script can inherit all of the rails active record methods? I am trying to run a script from the cli so work on the associations between models but I am not sure how to get the active record methods to use.