Error

$ rails db:seed Google API error: request denied (API keys with referer restrictions cannot be used with this API.).

Solution

https://console.cloud.google.com/billing/01341A-192333-0D62D1 API service->set application restriction-> select website or ip address