# Add fixtures Class mothodes

**URL:** <https://www.ruby-forum.com/t/add-fixtures-class-mothodes/151141>\
**Category:** Rails\
**Created:** [October 17, 2008, 10:27am UTC](https://www.ruby-forum.com/t/add-fixtures-class-mothodes/151141 "2008-10-17T10:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 17, 2008, 10:27am UTC](https://www.ruby-forum.com/t/add-fixtures-class-mothodes/151141/1 "2008-10-17T10:27:37Z")

</div>

Dear All

I am using fixtures to load data into my program.

But when loading data into the table later, I use:  
directory = File.join(File.dirname( **FILE** ), “data/2007”)  
Fixtures.create\_fixtures(directory, “filename”)

The problem with the “create\_fixtures” methode is that it moves all  
the “old data” in the table and load the new data.

I would just like to have a load methode, that don’s remove my present  
data.

I would like to use .yaml files, to ease.

I know of the option of loading data via pure SQL statements, but I  
would like to use rails and .yaml files for ease.

regards  
svend
