Putting large objects into Fixtures

Hello all,
I’ve come across several suggestions that indicate that I should use
fixtures to load a predefined set of data into my database for testing.
My thought was that if I could use such a setup for creating predefined
test data, what would stop me from using it to create the initial data
that would be loaded when the site goes live?

So, I have several tables in the database that have large text fields.
How would I go about putting these into YAML when they might possibly
contain syntax that would screw up the parsing of the YAML file? Any
idea how to do this? Is there a rake task for it (probably)? Should I do
it this way?


Do you Yahoo!?
Get on board. You’re invited to try the new Yahoo! Mail.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs