Skip to content
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

Add seeding_method option to generator #21

Open
evanthegrayt opened this issue Jun 11, 2021 · 0 comments
Open

Add seeding_method option to generator #21

evanthegrayt opened this issue Jun 11, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@evanthegrayt
Copy link
Owner

Add a way to specify
rails generate planter:seeder users --csv
rails generate planter:seeder users --data_array
rails generate planter:seeder users --custom
Depending on what's passed, the generator adds the correct text. The --csv option will also add the csv file, and add the field names as the headers, pulled from that table.

@evanthegrayt evanthegrayt added the enhancement New feature or request label Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant