(405.2ms) CREATE DATABASE "bookingsync_engine_development" ENCODING = 'unicode'  (293.1ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'  (13.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (3.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.4ms) SELECT pg_try_advisory_lock(4021716121895623095)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to CreateAccounts (20140522110326)  (0.1ms) BEGIN  (5.4ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20140522110326"]]  (0.7ms) COMMIT Migrating to AddOAuthFieldsToAccounts (20140522110454)  (0.3ms) BEGIN  (2.5ms) ALTER TABLE "accounts" ADD "provider" character varying  (0.3ms) ALTER TABLE "accounts" ADD "synced_id" integer  (1.4ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")  (0.2ms) ALTER TABLE "accounts" ADD "name" character varying  (0.2ms) ALTER TABLE "accounts" ADD "oauth_access_token" character varying  (0.4ms) ALTER TABLE "accounts" ADD "oauth_refresh_token" character varying  (0.2ms) ALTER TABLE "accounts" ADD "oauth_expires_at" character varying ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20140522110454"]]  (0.4ms) COMMIT Migrating to CreateMultiApplicationsAccounts (20181130062531)  (0.1ms) BEGIN  (1.7ms) CREATE TABLE "multi_applications_accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20181130062531"]]  (0.4ms) COMMIT Migrating to AddOAuthFieldsToMultiApplicationsAccounts (20181130062650)  (0.2ms) BEGIN  (1.2ms) ALTER TABLE "multi_applications_accounts" ADD "provider" character varying  (0.2ms) ALTER TABLE "multi_applications_accounts" ADD "synced_id" integer  (1.1ms) CREATE INDEX "index_multi_applications_accounts_on_synced_id" ON "multi_applications_accounts" ("synced_id")  (0.3ms) ALTER TABLE "multi_applications_accounts" ADD "name" character varying  (0.2ms) ALTER TABLE "multi_applications_accounts" ADD "oauth_access_token" character varying  (0.2ms) ALTER TABLE "multi_applications_accounts" ADD "oauth_refresh_token" character varying  (0.2ms) ALTER TABLE "multi_applications_accounts" ADD "oauth_expires_at" character varying  (0.5ms) ALTER TABLE "multi_applications_accounts" ADD "host" character varying NOT NULL  (1.1ms) CREATE INDEX "index_multi_applications_accounts_on_host" ON "multi_applications_accounts" ("host")  (0.9ms) CREATE UNIQUE INDEX "index_multi_applications_accounts_on_host_and_synced_id" ON "multi_applications_accounts" ("host", "synced_id") ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20181130062650"]]  (0.5ms) COMMIT Migrating to CreateApplications (20181130063056)  (0.2ms) BEGIN  (6.2ms) CREATE TABLE "applications" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::SchemaMigration Create (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20181130063056"]]  (0.7ms) COMMIT Migrating to AddCredentialsFieldsToApplications (20181130063104)  (0.9ms) BEGIN  (5.1ms) ALTER TABLE "applications" ADD "host" character varying NOT NULL  (1.2ms) CREATE UNIQUE INDEX "index_applications_on_host" ON "applications" ("host")  (0.4ms) ALTER TABLE "applications" ADD "client_id" text NOT NULL  (1.4ms) CREATE UNIQUE INDEX "index_applications_on_client_id" ON "applications" ("client_id")  (0.3ms) ALTER TABLE "applications" ADD "client_secret" text NOT NULL  (6.0ms) CREATE UNIQUE INDEX "index_applications_on_client_secret" ON "applications" ("client_secret") ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20181130063104"]]  (0.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN ActiveRecord::InternalMetadata Create (1.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-06-21 14:35:31.093625"], ["updated_at", "2019-06-21 14:35:31.093625"]]  (0.7ms) COMMIT  (0.3ms) SELECT pg_advisory_unlock(4021716121895623095)  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) SELECT pg_try_advisory_lock(4021716121895623095)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) SELECT pg_advisory_unlock(4021716121895623095)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] SQL (3.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.9ms) DROP TABLE IF EXISTS "accounts" CASCADE  (4.9ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)  (1.3ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")  (2.8ms) DROP TABLE IF EXISTS "applications" CASCADE  (4.6ms) CREATE TABLE "applications" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "host" character varying NOT NULL, "client_id" text NOT NULL, "client_secret" text NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "index_applications_on_client_id" ON "applications" ("client_id")  (1.6ms) CREATE UNIQUE INDEX "index_applications_on_client_secret" ON "applications" ("client_secret")  (6.3ms) CREATE UNIQUE INDEX "index_applications_on_host" ON "applications" ("host")  (3.8ms) DROP TABLE IF EXISTS "multi_applications_accounts" CASCADE  (10.4ms) CREATE TABLE "multi_applications_accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying, "host" character varying NOT NULL)  (4.1ms) CREATE UNIQUE INDEX "index_multi_applications_accounts_on_host_and_synced_id" ON "multi_applications_accounts" ("host", "synced_id")  (2.4ms) CREATE INDEX "index_multi_applications_accounts_on_host" ON "multi_applications_accounts" ("host")  (1.2ms) CREATE INDEX "index_multi_applications_accounts_on_synced_id" ON "multi_applications_accounts" ("synced_id")  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.1ms) BEGIN  (0.1ms) COMMIT SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.2ms) DROP TABLE IF EXISTS "accounts" CASCADE  (40.9ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)  (1.7ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")  (0.2ms) DROP TABLE IF EXISTS "applications" CASCADE  (4.8ms) CREATE TABLE "applications" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "host" character varying NOT NULL, "client_id" text NOT NULL, "client_secret" text NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "index_applications_on_client_id" ON "applications" ("client_id")  (1.9ms) CREATE UNIQUE INDEX "index_applications_on_client_secret" ON "applications" ("client_secret")  (7.1ms) CREATE UNIQUE INDEX "index_applications_on_host" ON "applications" ("host")  (0.2ms) DROP TABLE IF EXISTS "multi_applications_accounts" CASCADE  (4.9ms) CREATE TABLE "multi_applications_accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying, "host" character varying NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "index_multi_applications_accounts_on_host_and_synced_id" ON "multi_applications_accounts" ("host", "synced_id")  (1.2ms) CREATE INDEX "index_multi_applications_accounts_on_host" ON "multi_applications_accounts" ("host")  (7.6ms) CREATE INDEX "index_multi_applications_accounts_on_synced_id" ON "multi_applications_accounts" ("synced_id")  (8.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (20181130063104)  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES (20140522110454), (20181130062650), (20181130063056), (20140522110326), (20181130062531);   (3.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.1ms) BEGIN ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-06-21 14:40:15.884905"], ["updated_at", "2019-06-21 14:40:15.884905"]]  (0.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.1ms) BEGIN ActiveRecord::InternalMetadata Update (0.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-06-21 14:40:15.889023"], ["key", "environment"]]  (0.4ms) COMMIT  (1.1ms) SELECT pg_try_advisory_lock(4021716121895623095)  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to AddCustomBookingSyncKeyIdToAccounts (20190623220013)  (0.6ms) BEGIN  (5.0ms) ALTER TABLE "accounts" ADD "customized_key" integer ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190623220013"]]  (0.6ms) COMMIT ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) SELECT pg_advisory_unlock(4021716121895623095)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.3ms) SELECT pg_try_advisory_lock(4021716121895623095)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to AddCustomBookingSyncKeyIdToMultiApplicationsAccounts (20190623220132)  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "multi_applications_accounts" ADD "customized_key" integer ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190623220132"]]  (2.0ms) COMMIT ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.3ms) SELECT pg_advisory_unlock(4021716121895623095)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) SELECT pg_try_advisory_lock(4021716121895623095)  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to AddCustomBookingSyncKeyIdToMultiApplicationsAccounts (20190623220132)  (0.2ms) BEGIN  (3.1ms) ALTER TABLE "multi_applications_accounts" DROP COLUMN "customized_key" ActiveRecord::SchemaMigration Destroy (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20190623220132"]]  (0.6ms) COMMIT Migrating to AddCustomBookingSyncKeyIdToAccounts (20190623220013)  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "accounts" DROP COLUMN "customized_key" ActiveRecord::SchemaMigration Destroy (2.0ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20190623220013"]]  (1.3ms) COMMIT  (0.8ms) SELECT pg_advisory_unlock(4021716121895623095)  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) SELECT pg_try_advisory_lock(4021716121895623095)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to AddCustomBookingSyncKeyIdToAccounts (20190623220013)  (0.2ms) BEGIN  (0.7ms) ALTER TABLE "accounts" ADD "customized_key" integer ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190623220013"]]  (2.1ms) COMMIT Migrating to AddCustomBookingSyncKeyIdToMultiApplicationsAccounts (20190623220132)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "multi_applications_accounts" ADD "customized_key" integer ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190623220132"]]  (0.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) SELECT pg_advisory_unlock(4021716121895623095)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1175.0ms) CREATE DATABASE "bookingsync_engine_development" ENCODING = 'unicode'  (825.0ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode' SQL (12.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.9ms) DROP TABLE IF EXISTS "accounts" CASCADE  (162.5ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)  (2.5ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")  (0.2ms) DROP TABLE IF EXISTS "applications" CASCADE  (5.7ms) CREATE TABLE "applications" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "host" character varying NOT NULL, "client_id" text NOT NULL, "client_secret" text NOT NULL)  (10.9ms) CREATE UNIQUE INDEX "index_applications_on_client_id" ON "applications" ("client_id")  (2.3ms) CREATE UNIQUE INDEX "index_applications_on_client_secret" ON "applications" ("client_secret")  (2.2ms) CREATE UNIQUE INDEX "index_applications_on_host" ON "applications" ("host")  (0.2ms) DROP TABLE IF EXISTS "multi_applications_accounts" CASCADE  (10.8ms) CREATE TABLE "multi_applications_accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying, "host" character varying NOT NULL)  (3.5ms) CREATE UNIQUE INDEX "index_multi_applications_accounts_on_host_and_synced_id" ON "multi_applications_accounts" ("host", "synced_id")  (5.2ms) CREATE INDEX "index_multi_applications_accounts_on_host" ON "multi_applications_accounts" ("host")  (2.9ms) CREATE INDEX "index_multi_applications_accounts_on_synced_id" ON "multi_applications_accounts" ("synced_id")  (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20181130063104)  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES (20140522110326), (20140522110454), (20181130062531), (20181130062650), (20181130063056);   (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN ActiveRecord::InternalMetadata Create (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-03-25 16:17:19.875839"], ["updated_at", "2020-03-25 16:17:19.875839"]]  (0.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]  (0.1ms) BEGIN ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "755874218b611b67fce72928f68517992e40a98e"], ["created_at", "2020-03-25 16:17:19.882233"], ["updated_at", "2020-03-25 16:17:19.882233"]]  (0.4ms) COMMIT SQL (3.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.2ms) DROP TABLE IF EXISTS "accounts" CASCADE  (64.5ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)  (3.8ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")  (0.2ms) DROP TABLE IF EXISTS "applications" CASCADE  (6.5ms) CREATE TABLE "applications" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "host" character varying NOT NULL, "client_id" text NOT NULL, "client_secret" text NOT NULL)  (12.6ms) CREATE UNIQUE INDEX "index_applications_on_client_id" ON "applications" ("client_id")  (2.5ms) CREATE UNIQUE INDEX "index_applications_on_client_secret" ON "applications" ("client_secret")  (2.6ms) CREATE UNIQUE INDEX "index_applications_on_host" ON "applications" ("host")  (0.2ms) DROP TABLE IF EXISTS "multi_applications_accounts" CASCADE  (6.3ms) CREATE TABLE "multi_applications_accounts" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying, "host" character varying NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "index_multi_applications_accounts_on_host_and_synced_id" ON "multi_applications_accounts" ("host", "synced_id")  (11.9ms) CREATE INDEX "index_multi_applications_accounts_on_host" ON "multi_applications_accounts" ("host")  (14.4ms) CREATE INDEX "index_multi_applications_accounts_on_synced_id" ON "multi_applications_accounts" ("synced_id")  (9.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES (20181130063104)  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES (20140522110326), (20140522110454), (20181130062531), (20181130062650), (20181130063056);   (10.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.1ms) BEGIN ActiveRecord::InternalMetadata Create (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-03-25 16:17:20.128664"], ["updated_at", "2020-03-25 16:17:20.128664"]]  (0.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.1ms) BEGIN ActiveRecord::InternalMetadata Update (1.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-03-25 16:17:20.132397"], ["key", "environment"]]  (0.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]  (0.1ms) BEGIN ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "755874218b611b67fce72928f68517992e40a98e"], ["created_at", "2020-03-25 16:17:20.136794"], ["updated_at", "2020-03-25 16:17:20.136794"]]  (0.3ms) COMMIT