Complete the code to create a new user in the seed file.
User.create(name: "Alice", email: "alice@example.com", [1]: "password123")
The correct attribute for setting a user's password in Rails is password.
Complete the code to add multiple products in the seed file.
Product.create([{name: "Book", price: 10}, {name: "Pen", price: [1]])The price for the 'Pen' product is set to 5 as a valid integer value.
Fix the error in the seed code to correctly create a category.
Category.[1](name: "Electronics")
The create method both initializes and saves the record in the database.
Fill both blanks to create users with emails and passwords.
User.create(name: "Bob", email: [1], [2]: "securepass")
The email must be a string with quotes, and the password attribute is password.
Fill all three blanks to create a product with name, price, and stock quantity.
Product.create(name: [1], price: [2], stock: [3])
The product name is a string, so it needs quotes. Price and stock are numbers without quotes.
