I have some data in my development database that I would like to utilize as fixtures in my test environment. What is the best way in Rails 2.x to export a database table to
This plugin will add the functionality you want. It was extracted from ActiveRecord so no longer comes by default.
script/plugin install http://github.com/topfunky/ar_fixtures
Then run:
rake db:fixtures:dump MODEL=ModelName