You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you write a migration script (I believe a migrations script is the correct place) that seeds the database with a handful of more realistic looking polls, titles, and dates. Some without descriptions, some with end dates that have passed, some that have a lot of valid event IDs, etc.
When I currently send a request to the API, it returns data from the poapvote database—just want to confirm this is the correct one (as opposed to poapvote_test)
This will help with developing the front end and seeing how things look.
The text was updated successfully, but these errors were encountered:
Good idea! Yes, we can use database seeding functionality from Sequelize to do this.
When I currently send a request to the API, it returns data from the poapvote database—just want to confirm this is the correct one (as opposed to poapvote_test)
Correct, when you run the tests it uses the poapvote_test database, but when you run npm run dev it uses poapvote.
Could you write a migration script (I believe a migrations script is the correct place) that seeds the database with a handful of more realistic looking polls, titles, and dates. Some without descriptions, some with end dates that have passed, some that have a lot of valid event IDs, etc.
When I currently send a request to the API, it returns data from the
poapvote
database—just want to confirm this is the correct one (as opposed topoapvote_test
)This will help with developing the front end and seeing how things look.
The text was updated successfully, but these errors were encountered: