We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a5ad0 commit d001c63Copy full SHA for d001c63
spec/dummy/db/seeds.rb
@@ -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
0 commit comments