I wonder why the first data which is the agency, wasn't saved even if the syntax is just really correct.
Please take a look at my seed file:
db/seeds.rb
Agency.delete_all
puts "Creating agency: agency@example.com..."
Agency.create(email: 'agency@example.com', password: 'password')
puts "Done!\n\n"
Admin.delete_all
puts "Creating admin: admin@example.com..."
Admin.new
Admin.create(email: 'admin@example.com', password: 'password')
puts "Done!\n\n"
When I entered into the console, and hitted User.all
only the last data was saved and that was "admin"