There is a rake task for this. You can specify RAILS_ENV if needed; the default is the development environment:
rake db:fixtures:dump
# Create YAML test fixtures from data in an existing database.
There is a rake task for this. You can specify RAILS_ENV if needed; the default is the development environment:
rake db:fixtures:dump
# Create YAML test fixtures from data in an existing database.