Update seeds.rb with sample user #326
Reference in New Issue
Block a user
Delete Branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When the application is installed it is nice to have a default user to get onboard quickly.
@@ -7,3 +7,11 @@# ["Action", "Comedy", "Drama", "Horror"].each do |genre_name|Maybe: https://apidock.com/rails/ActiveRecord/Relation/create_or_find_by
Thank you! This is much needed! Should we put something in the readme to guide people to its existence?
@robzolkos db:setup has seed by default as far as I know so there is no need for general use
True - but unless a user goes digging into the seed.rb file they won't know how to login to the app. Normally I've seen instructions like
run
db:setup- this will setup a test user with login credentials ...... and password .....Nice
@@ -7,3 +7,11 @@# ["Action", "Comedy", "Drama", "Horror"].each do |genre_name|same here
True idea, I need a little bit time to update it as I am on mobile right now.
I agree that adding a line to the README would be helpful.