I have a rails application running over Postgres.
I have two servers: one for testing and the other for production.
Very often I need to clone the production
Just make sure that the you have exited the rails console on any open terminal window and exited the rails server...this is one of the most common mistake made by people