First SSH into your application
rhc ssh <app name>
Once into OpenShift, go to your repo directory and open Rails console
cd app-root/repo
bundle exec rails console production
Note that this last command takes a while for OpenShift to load. But you should be in after some time.