Insert data by using ActiveRecord to manage opening and closing a connection to Cloud SQL for PostgreSQL.
Documentation pages that include this code sample
To view the code sample used in context, see the following documentation:
Code sample
Ruby