Ruby on Rails: Accessing production database data for testing
        Posted  
        
            by williamjones
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by williamjones
        
        
        
        Published on 2010-04-12T21:43:27Z
        Indexed on 
            2010/04/12
            22:42 UTC
        
        
        Read the original article
        Hit count: 370
        
With Ruby on Rails, is there a way for me to dump my production database into a form that the test part of Rails can access?
I'm thinking either a way to turn the production database into fixtures, or else a way to migrate data from the production database into the test database that will not get routinely cleared out by Rails.
I'd like to use this data for a variety of tests, but foremost in my mind is using real data with the performance tests, so that I can get a realistic understanding of load times.
© Stack Overflow or respective owner