I wrote up a short article about importing old data into a new rails app and maintaining the auto incrementing ids August 5, 2014 http://10pixels.net/post/reset_auto_increment_in_postgresql_with_rails