Forum: Ruby on Rails Add fixtures Class mothodes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F193e52d0a812b1429d51412bee21cdc?d=identicon&s=25 gundestrup@gmail.com (Guest)
on 2008-10-17 10:27
(Received via mailing list)
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
This topic is locked and can not be replied to.