eduqg / LifeToRemind

:notebook_with_decorative_cover: Rails website to help students to create career plans.
https://lifetoremindhub.herokuapp.com/
BSD 3-Clause "New" or "Revised" License
11 stars 15 forks source link

Add rake task to seed test user in development #11

Closed nathandonato closed 4 years ago

nathandonato commented 4 years ago

There isn't any issue open regarding this; it is just something I wrote to improve my own workflow.

This PR adds a rake task that seeds a test user from the command line so that you don't need to go through the UI when you have a new database.

Use it by running the following command:

bundle exec rake development:create_test_user

Note that it will fail unless you are running in development.