I am using Rails and my YAML fixtures are corrupted and unusable. I would like to regenerate the YAML fixtures based on the development database.
I am not trying to take all the DB data and turn it into a fixture. What I want is to recreate the standard fixtures that were created initially when the models were first created.
Is there an easy way to do this in Rails 4?
(I saw this page that discusses how to do this [I think] by creating a rake task. However the Q is from 3 years ago and I wonder if a more direct method has been created yet.)
create_fixtures()
, but having a trouble figuring out how to use it due to the lack of documentation... – Astound