I see that there is a folder for database seeds and a command for it but I couldn’t find any documentation on how it works. Can someone help?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m sure this is a little late for an answer, but if you haven’t found one yet, here goes.
To create seeds:
The keyword
harvestwill invoke the railway app so that it creates seeds based on whatever you currently have in the database. As for where this goes, depending on what environment you have set, eg development, production, etc, it will place you seed files like so:…where [model] is your model (User, Post, Account, etc), and [environment] is your environment (development, test, production, etc).
To seed the database:
The documentation is a little light on seeding right now.