How to load selective fixtures to db in rails

Al of you know how to load fixture to db

rake db:fixtures:load 

To load a subset of your fixtures to your projects db

rake db:fixtures:load FIXTURES=users,stores
  1. jes5199 says:

    this also works for rspec fixtures (which are stored in /spec/fixtures )
    rake spec:db:fixtures:load FIXTURES=users,stores

  2. Pett says:

    Hi,
    Thank you! I would now go on this blog every day!

    Have a nice day
    Pett

  3. Robor says:

    Greatings,
    satishchauhan.com - da best. Keep it going!

    Have a nice day
    Robor

  4. After reading this article, I just feel that I really need more information on the topic. Can you suggest some resources ?

  1. There are no trackbacks for this post yet.

Leave a Reply