Skip to content

Commit d001c63

Browse files
author
Charles Maresh
committed
Add seed data for manual testing
1 parent e5a5ad0 commit d001c63

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/dummy/db/seeds.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
if AdminUser.find_by(email: "admin@example.com").nil?
3+
AdminUser.create!(email: "admin@example.com", password: "testing123", password_confirmation: "testing123")
4+
end
5+
6+
categories = %w[Fruit Apple Pear Watermelon Vegetables Cucumber Squash Onion]
7+
8+
categories.each do |name|
9+
Category.find_or_create_by!(name: name)
10+
end

0 commit comments

Comments
 (0)