# Running a single fixture

**URL:** <https://www.ruby-forum.com/t/running-a-single-fixture/172017>\
**Category:** Rails\
**Created:** [July 13, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/running-a-single-fixture/172017 "2009-07-13T13:23:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [July 13, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/running-a-single-fixture/172017/1 "2009-07-13T13:23:34Z")

</div>

Hello. I need to run a single fixture on my server as part of an  
update to my application. I noticed that the other tables lost their  
data when I run “rake db:fixtures:load”. How do I make it so that only  
a single fixture runs and ignores the rest?

---

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [July 13, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/running-a-single-fixture/172017/2 "2009-07-13T15:37:26Z")

</div>

Well I am not sure if my solution is totally correct but I think I  
have solved this for now with a simple rake task. I posted how to run a single fixture in rails on my blog.
