# Regenerate Fixture file

**URL:** <https://www.ruby-forum.com/t/regenerate-fixture-file/133103>\
**Category:** Rails\
**Created:** [March 27, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/regenerate-fixture-file/133103 "2008-03-27T19:31:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [March 27, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/regenerate-fixture-file/133103/1 "2008-03-27T19:31:01Z")

</div>

so lets say you create a model and you edit your migrations  
but something changes and its like very really in your project so you  
just edit the migration file and  
roll back to version=0 and recreate all the tables

is there a way to re-generate like script/generate fixture tablename  
i don’t want to replace the model file just recreate fixture file  
based on shema.rb  
is there a way to do that
