Ibrahim Muhammad
Ibrahim Muhammad

Reputation: 2896

Generating fixtures from database in Rails 3

I want to generate fixtures from the development database in Rails 3.1. I tried using the yaml files created by yaml_db, but their structure is different from that of fixtures.

I am trying to get ar_fixtures to work, I put

gem 'ar_fixtures'

in my Gemfile and did a bundle install but "rake -T" doesnt show anything new.

Upvotes: 1

Views: 404

Answers (1)

Daniel Morris
Daniel Morris

Reputation: 6882

That gem is years old and not 3.1 compatible likely. If you're ok with the fixtures being dumped into a single file, check out the 'yaml_db' gem on github

Upvotes: 1

Related Questions