Skip to content

Instantly share code, notes, and snippets.

@x9sim9
x9sim9 / README.md
Last active November 14, 2019 11:52 — forked from toby-1-kenobi/fixture_parser.rb
Parse rails fixtures to seed the database without destroying or duplicating data

Seeds Yaml

Fixtures within Seeds, completely seperate from test

This simple class is designed to populate a database from yml files in the exact same way that fixtures work with additional support for namespacing

db/seeds.rb ++ require R.root.join("lib", "seeds_yaml").to_s ++ SeedsYaml.new