-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSV loader #32
Comments
I was thinking more along the lines of what Rails does with fixtures http://guides.rubyonrails.org/testing.html#the-low-down-on-fixtures |
Never mind, I thought this was about loading test data in buffalo. Ignore my previous comment. :) |
@markbates It can be used for that, but it aims to be more generic and not Buffalo-centric. |
So there is currently no way to load test data for testing or development? Well then I would like to make a feature request :D Btw: great work |
See gobuffalo/suite#8 it’ll be merged tomorrow. |
Thanks a lot for this. It already looks great. Something I also would like to have is a command like I kind of like how symfony is doing their fixtures. |
I think you want the db:seed task. |
Closing this one, will be implemented outside the repo as a plugin. |
Abstract
For testing purposes, it's quite common to preload some known data in the database. CSV files are a good way to handle data rows, and many data-manipulation tools have a support for CSV extraction.
Implementation
The text was updated successfully, but these errors were encountered: