The personal finance app for everyone
Update seeds.rb with sample user (#326)
Muhammed Kılıç595cfeff9a93
diff --git a/README.md b/README.mdindex 769396dd..a2116fe1 100644--- a/README.md+++ b/README.md@@ -49,7 +49,11 @@ rails db:setupbin/dev```-And visit [http://localhost:3000](http://localhost:3000)+And visit [http://localhost:3000](http://localhost:3000) to see the app.+You can use the following credentials to log in:++- Email: `[email protected]`+- Password: `password`diff --git a/db/seeds.rb b/db/seeds.rbindex 4fbd6ed9..396593bd 100644--- a/db/seeds.rb+++ b/db/seeds.rb@@ -7,3 +7,11 @@# ["Action", "Comedy", "Drama", "Horror"].each do |genre_name|# MovieGenre.find_or_create_by!(name: genre_name)# end++# Create the default user+family = Family.create_or_find_by!(name: "The Maybe Family")+puts "Family created: #{family.name}"+user = User.create_or_find_by!(+ first_name: "Josh", last_name: "Maybe", email: "[email protected]",+ password: "password", password_confirmation: "password", family_id: family.id)+puts "User created: #{user.email} for family: #{family.name}"