test/dummy/log/development.log in billing-0.0.5 vs test/dummy/log/development.log in billing-0.0.6a
- old
+ new
@@ -1,12860 +1,104 @@
- [1m[36m (188.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
- [1m[35m (0.2ms)[0m select sqlite_version(*)
- [1m[36m (147.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[36m (111.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (0.3ms)[0m select sqlite_version(*)
+ [1m[36m (97.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateBillingAccounts (20140717180443)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.8ms)[0m CREATE TABLE "billing_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "billing_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar(255), "created_at" datetime, "updated_at" datetime)
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_accounts_on_billable_id_and_billable_type" ON "billing_accounts" ("billable_id", "billable_type")[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717180443"]]
- [1m[36m (147.2ms)[0m [1mcommit transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717180443"]]
+ [1m[36m (129.4ms)[0m [1mcommit transaction[0m
Migrating to CreateBillingCharges (20140717181134)
[1m[35m (0.2ms)[0m begin transaction
[1m[36m (0.8ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
+ [1m[35m (0.4ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_account_id' AND type='index'
[0m
- [1m[35m (0.4ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
+ [1m[35m (0.5ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717181134"]]
- [1m[35m (145.1ms)[0m commit transaction
+ [1m[35m (121.9ms)[0m commit transaction
Migrating to CreateBillingDiscounts (20140717181406)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "billing_discounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_discounts_on_account_id" ON "billing_discounts" ("account_id")[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717181406"]]
- [1m[36m (136.7ms)[0m [1mcommit transaction[0m
-Migrating to CreateBillingPayments (20140717183129)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717183129"]]
- [1m[35m (146.6ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to CreateBillingOrigins (20140717202527)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mCREATE TABLE "billing_origins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717202527"]]
- [1m[36m (192.8ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to CreateProfiles (20140718104656)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mCREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140718104656"]]
- [1m[36m (182.1ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddSumariesToBillingAccount (20140718164841)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_charges" ADD "charges_sum_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_charges" ADD "discounts_sum_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_charges" ADD "payments_sum_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_charges" ADD "total_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "total_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "balance_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "balance_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718164841"]]
- [1m[35m (193.2ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddSumariesToBillingAccount (20140718164841)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar(255) DEFAULT 'USD' NOT NULL, "balance_cents" integer DEFAULT 0 NOT NULL, "balance_currency" varchar(255) DEFAULT 'USD' NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar(255) DEFAULT 'USD' NOT NULL, "balance_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar(255) DEFAULT 'USD' NOT NULL, "balance_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar(255) DEFAULT 'USD' NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar(255) DEFAULT 'USD' NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_charges"
- [1m[36m (0.3ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.1ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_charges"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.1ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_charges"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.1ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_charges"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.1ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_charges"
- [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140718164841'[0m
- [1m[35m (193.5ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddSumariesToBillingAccount (20140718164841)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_accounts" ADD "charges_sum_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_accounts" ADD "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_accounts" ADD "discounts_sum_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_accounts" ADD "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_accounts" ADD "payments_sum_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_accounts" ADD "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_accounts" ADD "total_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_accounts" ADD "total_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_accounts" ADD "balance_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_accounts" ADD "balance_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718164841"]]
- [1m[35m (177.7ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddFixedValueToBillingDiscount (20140718210349)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_discounts" ADD "fixed_value_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_discounts" ADD "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718210349"]]
- [1m[35m (155.2ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.4ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to CreateBillingPaymentTypes (20140718212116)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mCREATE TABLE "billing_payment_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "cash" boolean, "fiscal" boolean, "created_at" datetime, "updated_at" datetime) [0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140718212116"]]
- [1m[36m (198.6ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to CreateBillingTaxGroups (20140719094023)
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36m (0.7ms)[0m [1mCREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140719094023"]]
- [1m[36m (158.3ms)[0m [1mcommit transaction[0m
-Migrating to CreateBillingPlus (20140719094033)
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36m (0.8ms)[0m [1mCREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140719094033"]]
- [1m[36m (168.0ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to CreateBillingProfiles (20140719094418)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "billing_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140719094418"]]
- [1m[36m (459.5ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to RenameBillingDiscountsToModifiers (20140719103621)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_discounts" RENAME TO "billing_modifiers"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_modifiers_on_account_id" ON "billing_modifiers" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_discounts_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mDROP INDEX "index_billing_discounts_on_account_id"[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140719103621"]]
- [1m[36m (210.7ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddSurchargesSumToBillingAccount (20140719110412)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_accounts" ADD "surcharges_sum_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_accounts" ADD "surcharges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719110412"]]
- [1m[35m (150.4ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddTypeToBillingPayment (20140720110811)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_payments" ADD "type" varchar(255) DEFAULT 'Billing::PaymentWithType'[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140720110811"]]
- [1m[36m (152.1ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddTypeToBillingPayment (20140720110811)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255) DEFAULT 'Billing::PaymentWithType')
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_payments"
- [1m[36m (0.3ms)[0m [1mDROP TABLE "billing_payments"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_payments"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_payments"
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140720110811'[0m
- [1m[35m (156.6ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddTypeToBillingPayment (20140720110811)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_payments" ADD "type" varchar(255) DEFAULT 'Billing::PaymentWithType'[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_payments" ADD "payment_type_id" integer
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140720110811"]]
- [1m[35m (172.1ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddTypeToBillingPayment (20140720110811)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255) DEFAULT 'Billing::PaymentWithType', "payment_type_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_payments"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_payments"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255) DEFAULT 'Billing::PaymentWithType')
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_payments"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_payments"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255) DEFAULT 'Billing::PaymentWithType') [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_payments"
- [1m[36m (0.3ms)[0m [1mDROP TABLE "billing_payments"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_payments"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_payments"
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140720110811'[0m
- [1m[35m (162.5ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddTypeToBillingPayment (20140720110811)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_payments" ADD "type" varchar(255)[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_payments" ADD "payment_type_id" integer
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140720110811"]]
- [1m[35m (140.2ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddTypeToBillingPaymentType (20140720132559)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_payment_types" ADD "type" varchar(255)[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140720132559"]]
- [1m[36m (220.0ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (30.8ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to CreateBillingOperators (20140721172932)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140721172932"]]
- [1m[35m (166.5ms)[0m commit transaction
-Migrating to CreateBillingDepartments (20140721173106)
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.8ms)[0m CREATE TABLE "billing_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "tax_group_id" integer, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140721173106"]]
- [1m[35m (168.7ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (59.4ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseTaxGroup (20140722155049)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseTaxGroup (20140722155049)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_tax_groups" ADD "number" integer
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "percent_ratio" decimal(6,3)[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_tax_groups" ADD "banned" boolean
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "type" varchar(255)[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_tax_groups" ADD "deleted_at" datetime
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722155049"]]
- [1m[35m (159.9ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to ChangeTableBaseTaxGroup (20140722155049)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar(255), "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.3ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.4ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar(255))
- [1m[36m (0.2ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.3ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36m (0.3ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar(255)) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.4ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "number" integer, "percent_ratio" decimal(6,3))
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "number" integer, "percent_ratio" decimal(6,3)) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "number" integer)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "number" integer) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140722155049'[0m
- [1m[35m (199.8ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseTaxGroup (20140722155049)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_tax_groups" ADD "master_id" integer
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "number" integer[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_tax_groups" ADD "percent_ratio" decimal(6,3)
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "banned" boolean[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_tax_groups" ADD "type" varchar(255)
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "deleted_at" datetime[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722155049"]]
- [1m[36m (176.7ms)[0m [1mcommit transaction[0m
-Migrating to ChangeTableBaseOperator (20140722155802)
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722155802"]]
- [1m[35m (120.0ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to ChangeTableBaseOperator (20140722155802)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mCREATE TEMPORARY TABLE "abilling_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_operators"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_operators"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.0ms)[0m [1mSELECT * FROM "abilling_operators"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_operators"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_operators"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_operators"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.0ms)[0m [1mSELECT * FROM "abilling_operators"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_operators"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (0.0ms)[0m SELECT * FROM "billing_operators"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_operators"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.0ms)[0m [1mSELECT * FROM "abilling_operators"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_operators"
- [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140722155802'[0m
- [1m[35m (222.8ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to ChangeTableBaseTaxGroup (20140722155049)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar(255), "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar(255))
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar(255)) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3))
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3)) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_tax_groups"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_tax_groups"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_tax_groups"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_tax_groups"
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140722155049'[0m
- [1m[35m (195.4ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseBillingTaxGroup (20140722160242)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_tax_groups" ADD "master_id" integer
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "number" integer[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_tax_groups" ADD "percent_ratio" decimal(6,3)
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "banned" boolean[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_tax_groups" ADD "type" varchar(255)
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "deleted_at" datetime[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722160242"]]
- [1m[36m (160.0ms)[0m [1mcommit transaction[0m
-Migrating to ChangeTableBaseBillingOperator (20140722160258)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_operators" ADD "number" integer[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_operators" ADD "banned" boolean
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_operators" ADD "deleted_at" datetime[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722160258"]]
- [1m[36m (153.4ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseBillingPaymentType (20140722160529)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_payment_types" ADD "master_id" integer
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_payment_types" ADD "number" integer[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_payment_types" ADD "banned" boolean
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payment_types" ADD "deleted_at" datetime[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722160529"]]
- [1m[36m (167.3ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseBillingDepartments (20140722160902)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_departments" ADD "master_id" integer
-SQLite3::SQLException: duplicate column name: master_id: ALTER TABLE "billing_departments" ADD "master_id" integer
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseBillingDepartments (20140722160902)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_departments" ADD "banned" boolean
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_departments" ADD "deleted_at" datetime[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722160902"]]
- [1m[36m (184.6ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseBillingPlus (20140722161743)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_plus" ADD "master_id" integer
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_plus" ADD "tax_group_id" integer[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_plus" ADD "department_id" integer
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_plus" ADD "number" integer[0m
- [1m[35m (0.5ms)[0m ALTER TABLE "billing_plus" ADD "price_cents" integer DEFAULT 0 NOT NULL
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_plus" ADD "price_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_plus" ADD "code" varchar(255)
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_plus" ADD "type" varchar(255)[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_plus" ADD "banned" boolean
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_plus" ADD "deleted_at" datetime[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722161743"]]
- [1m[36m (178.4ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to ChangeTableBaseBillingPlus (20140722161743)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mCREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "code" varchar(255), "type" varchar(255), "banned" boolean, "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_department_id" ON "abilling_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_tax_group_id" ON "abilling_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_plus"
- [1m[36m (0.3ms)[0m [1mDROP TABLE "billing_plus"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "code" varchar(255), "type" varchar(255), "banned" boolean)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_plus"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_plus"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "code" varchar(255), "type" varchar(255), "banned" boolean)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_department_id" ON "abilling_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_tax_group_id" ON "abilling_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_plus"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "code" varchar(255), "type" varchar(255))
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "code" varchar(255), "type" varchar(255))
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_department_id" ON "abilling_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_tax_group_id" ON "abilling_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_plus"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "code" varchar(255))
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "code" varchar(255))
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_department_id" ON "abilling_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_tax_group_id" ON "abilling_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_department_id" ON "abilling_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_tax_group_id" ON "abilling_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer, "price_cents" integer DEFAULT 0 NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_department_id" ON "abilling_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_tax_group_id" ON "abilling_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer, "number" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_department_id" ON "abilling_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_tax_group_id" ON "abilling_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer, "department_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_department_id" ON "abilling_plus" ("department_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_plus_on_tax_group_id" ON "abilling_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_plus"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_plus"[0m
- [1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer, "tax_group_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_plus_on_tax_group_id" ON "abilling_plus" ("tax_group_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_plus"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "billing_plus"
- [1m[36m (0.1ms)[0m [1mCREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_plus"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_plus"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "master_id" integer) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_plus"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_plus"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_plus"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_plus"
- [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140722161743'[0m
- [1m[35m (197.2ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to ChangeTableBaseBillingDepartments (20140722160902)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m DROP INDEX "index_billing_departments_on_tax_group_id"
- [1m[36m (0.3ms)[0m [1mCREATE TEMPORARY TABLE "abilling_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "tax_group_id" integer, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "banned" boolean, "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_departments"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_departments"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "tax_group_id" integer, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "banned" boolean)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_departments"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_departments"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "tax_group_id" integer, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "banned" boolean) [0m
- [1m[35m (0.0ms)[0m SELECT * FROM "billing_departments"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "billing_departments"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "tax_group_id" integer, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_departments"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_departments"
- [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140722160902'[0m
- [1m[35m (198.2ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseBillingDepartments (20140722160902)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_departments" ADD "number" integer
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_departments" ADD "banned" boolean[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_departments" ADD "deleted_at" datetime
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160902"]]
- [1m[35m (184.8ms)[0m commit transaction
-Migrating to ChangeTableBaseBillingPlus (20140722161743)
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.8ms)[0m ALTER TABLE "billing_plus" ADD "master_id" integer
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_plus" ADD "tax_group_id" integer[0m
- [1m[35m (0.5ms)[0m CREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_plus" ADD "department_id" integer[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
- [1m[35m (0.5ms)[0m ALTER TABLE "billing_plus" ADD "number" integer
- [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_plus" ADD "price_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.6ms)[0m ALTER TABLE "billing_plus" ADD "price_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_plus" ADD "code" varchar(255)[0m
- [1m[35m (0.5ms)[0m ALTER TABLE "billing_plus" ADD "type" varchar(255)
- [1m[36m (0.8ms)[0m [1mALTER TABLE "billing_plus" ADD "banned" boolean[0m
- [1m[35m (0.7ms)[0m ALTER TABLE "billing_plus" ADD "deleted_at" datetime
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722161743"]]
- [1m[35m (159.9ms)[0m commit transaction
-Migrating to ChangeTableBaseBillingOrigins (20140722162315)
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.8ms)[0m ALTER TABLE "billing_origins" ADD "master_id" integer
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_origins" ADD "fiscal_device_id" integer[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_origins" ADD "banned" boolean
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_origins" ADD "deleted_at" datetime[0m
- [1m[35m (0.6ms)[0m ALTER TABLE "billing_origins" ADD "type" varchar(255)
- [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_origins" ADD "payment_model" varchar(255) DEFAULT 'Billing::PaymentWithType'[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to ChangeTableBaseBillingOrigins (20140722162315)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_origins" ADD "master_id" integer
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_origins" ADD "fiscal_device_id" integer[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_origins" ADD "banned" boolean
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_origins" ADD "deleted_at" datetime[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_origins" ADD "type" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_origins" ADD "payment_model" varchar(255) DEFAULT 'Billing::PaymentWithType'[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722162315"]]
- [1m[36m (177.9ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (76.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddOriginToBillingAccount (20140724173527)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.9ms)[0m ALTER TABLE "billing_accounts" ADD "origin_id" integer
- [1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_accounts_on_origin_id" ON "billing_accounts" ("origin_id")[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140724173527"]]
- [1m[36m (178.5ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to RemoveOriginAndFiscalDeficeFromBillingPayment (20140724173917)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_payments"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_payments"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_payments"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_payments"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_payments"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_payments"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_payments"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_payments"
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140724173917"]]
- [1m[35m (170.2ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (42.0ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddStatusToBillingPayment (20140725122914)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m ALTER TABLE "billing_payments" ADD "status" varchar(255)
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725122914"]]
- [1m[35m (147.8ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingCharge (20140725142525)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_charges" ADD "name" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "description" varchar(255)[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_charges" ADD "origin_id" integer
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "value_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "value_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")
-SQLite3::SQLException: table billing_charges has no column named deleted_at: CREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingCharge (20140725142525)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_charges" ADD "name" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "description" varchar(255)[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_charges" ADD "origin_id" integer
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "value_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "value_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_charges" ADD "deleted_at" datetime[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "revenue_at" datetime
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725142525"]]
- [1m[35m (177.4ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to EqalizeSchemasBillingCharge (20140725142525)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (1.0ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime) [0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m select sqlite_version(*)
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")[0m
- [1m[35m (0.2ms)[0m SELECT * FROM "billing_charges"
- [1m[36m (0.6ms)[0m [1mDROP TABLE "billing_charges"[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.4ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_charges"
- [1m[36m (0.4ms)[0m [1mDROP TABLE "billing_charges"[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL)
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_charges"[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255))
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255))
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255))
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255))
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_charges"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140725142525'
- [1m[36m (186.3ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingCharge (20140725142525)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_charges" ADD "name" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "description" varchar(255)[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_charges" ADD "origin_id" integer
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "value_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "value_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "deleted_at" datetime[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "revenue_at" datetime
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725142525"]]
- [1m[36m (191.4ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingDepartment (20140725143734)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725143734"]]
- [1m[35m (195.5ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingClosure (20140725145640)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m CREATE TABLE "billing_closures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar(255) DEFAULT 'USD' NOT NULL, "note" text, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar(255))
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_closures_on_origin_id" ON "billing_closures" ("origin_id")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725145640"]]
- [1m[35m (195.1ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingOperators (20140725145953)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_operators_on_deleted_at" ON "billing_operators" ("deleted_at")[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725145953"]]
- [1m[36m (162.9ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.4ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.4ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingOrigin (20140725150329)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36mBilling::PaymentType Load (1.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingOrigin (20140725150329)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725150329"]]
- [1m[35m (152.8ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingPaymentType (20140725151522)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_payment_types" ADD "print_copy" boolean
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725151522"]]
- [1m[35m (240.2ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingPayment (20140725152125)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_payments" ADD "name" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payments" ADD "description" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_payments" ADD "external_token" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payments" ADD "note" varchar(255)[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_payments" ADD "closure_id" integer
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_payments" ADD "closure_id" integer[0m
-SQLite3::SQLException: duplicate column name: closure_id: ALTER TABLE "billing_payments" ADD "closure_id" integer
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36mBilling::PaymentType Load (1.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingPayment (20140725152125)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_payments" ADD "name" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payments" ADD "description" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_payments" ADD "external_token" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payments" ADD "note" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_payments" ADD "closure_id" integer
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
-SQLite3::SQLException: table billing_payments has no column named deleted_at: CREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36mBilling::PaymentType Load (1.3ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingPayment (20140725152125)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_payments" ADD "name" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payments" ADD "description" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_payments" ADD "external_token" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payments" ADD "note" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_payments" ADD "closure_id" integer
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payments" ADD "deleted_at" datetime[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_payments_on_closure_id" ON "billing_payments" ("closure_id")[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725152125"]]
- [1m[36m (181.8ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.1ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingVersion (20140725153215)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar(255) NOT NULL, "item_id" integer NOT NULL, "event" varchar(255) NOT NULL, "whodunnit" varchar(255), "object" text, "created_at" datetime, "ip" varchar(255), "user_agent" varchar(255))
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725153215"]]
- [1m[35m (198.9ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.4ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.4ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to EqalizeSchemasBillingPtFpMapping (20140725153658)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_pt_fp_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_type_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_pt_fp_mappings_on_extface_driver_id" ON "billing_pt_fp_mappings" ("extface_driver_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_pt_fp_mappings_on_payment_type_id" ON "billing_pt_fp_mappings" ("payment_type_id")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725153658"]]
- [1m[35m (191.1ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.4ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddExtfaceJobToBillingAccount (20140725164847)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_accounts" ADD "extface_job_id" integer
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_accounts_on_extface_job_id" ON "billing_accounts" ("extface_job_id")
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725164847"]]
- [1m[35m (228.0ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to RenameClosureToBillingReport (20140726163220)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_closures" RENAME TO "billing_reports"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_closures_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m DROP INDEX "index_billing_closures_on_origin_id"
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140726163220"]]
- [1m[35m (186.9ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.3ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to RemoveClosureFromBillingAccount (20140726165718)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_closure_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mDROP INDEX "index_billing_payments_on_closure_id"[0m
- [1m[35m (0.3ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "closure_id" integer, "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_payments"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "billing_payments"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_payments"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_payments"
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140726165718"]]
- [1m[35m (202.9ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddReportToBillingAccount (20140726170002)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_accounts" ADD "report_id" integer
- [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_accounts_on_report_id" ON "billing_accounts" ("report_id")[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140726170002"]]
- [1m[36m (203.6ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (66.2ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddAutofinAndFinalizedAtToBillingAccount (20140728110230)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m ALTER TABLE "billing_accounts" ADD "autofin" boolean DEFAULT 't'
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_accounts" ADD "finalized_at" datetime[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140728110230"]]
- [1m[36m (150.6ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (91.4ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddNameToBillingAccount (20140729083050)
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.8ms)[0m ALTER TABLE "billing_accounts" ADD "name" varchar(255)
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729083050"]]
- [1m[35m (150.0ms)[0m commit transaction
-Migrating to AddNumberToBillingAccount (20140729083408)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.9ms)[0m ALTER TABLE "billing_accounts" ADD "number" varchar(255)
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729083408"]]
- [1m[35m (145.3ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (73.3ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddDeletedAtToBillingModifier (20140729180849)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.7ms)[0m ALTER TABLE "billing_modifiers" ADD "deleted_at" datetime
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729180849"]]
- [1m[35m (142.6ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.3ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddDeletedAtToBillingAccount (20140729182146)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_accounts" ADD "deleted_at" datetime
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729182146"]]
- [1m[35m (199.9ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (12.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.3ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to RenameBillingAccountToBill (20140803073707)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m ALTER TABLE "billing_accounts" RENAME TO "billing_bills"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m DROP INDEX "index_billing_accounts_on_report_id"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_accounts_on_extface_job_id"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m DROP INDEX "index_billing_accounts_on_origin_id"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_bills_on_billable_id_and_billable_type" ON "billing_bills" ("billable_id", "billable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_accounts_on_billable_id_and_billable_type"[0m
- [1m[35m (0.3ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_revenue_at" ON "abilling_charges" ("revenue_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_deleted_at" ON "abilling_charges" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_origin_id" ON "abilling_charges" ("origin_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("bill_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.3ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m DROP INDEX "index_billing_charges_on_account_id"
- [1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "abilling_modifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_modifiers_on_account_id" ON "abilling_modifiers" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_modifiers"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_modifiers"[0m
- [1m[35m (0.1ms)[0m CREATE TABLE "billing_modifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_modifiers_on_account_id" ON "billing_modifiers" ("bill_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_modifiers"[0m
- [1m[35m (0.1ms)[0m DROP TABLE "abilling_modifiers"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_modifiers_on_account_id"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_payments"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_payments"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_payments"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_payments"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m DROP INDEX "index_billing_payments_on_account_id"
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140803073707"]]
- [1m[35m (218.9ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mBilling::PaymentType Load (1.3ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to RenameBillingAccountToBill (20140803073707)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.8ms)[0m [1mCREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime) [0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_bill_id" ON "abilling_payments" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_payments"
- [1m[36m (0.5ms)[0m [1mDROP TABLE "billing_payments"[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_payments"
- [1m[36m (0.3ms)[0m [1mDROP TABLE "abilling_payments"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m DROP INDEX "index_billing_payments_on_bill_id"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_modifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_modifiers_on_bill_id" ON "abilling_modifiers" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_modifiers"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_modifiers"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_modifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_modifiers"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_modifiers"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_modifiers_on_account_id" ON "billing_modifiers" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mDROP INDEX "index_billing_modifiers_on_bill_id"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_charges_on_bill_id" ON "abilling_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_charges_on_revenue_at" ON "abilling_charges" ("revenue_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_deleted_at" ON "abilling_charges" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_origin_id" ON "abilling_charges" ("origin_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.3ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m DROP INDEX "index_billing_charges_on_bill_id"
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_bills" RENAME TO "billing_accounts"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_accounts_on_billable_id_and_billable_type" ON "billing_accounts" ("billable_id", "billable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m DROP INDEX "index_billing_bills_on_billable_id_and_billable_type"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_accounts_on_origin_id" ON "billing_accounts" ("origin_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_bills_on_origin_id"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_accounts_on_extface_job_id" ON "billing_accounts" ("extface_job_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m DROP INDEX "index_billing_bills_on_extface_job_id"
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_accounts_on_report_id" ON "billing_accounts" ("report_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_bills_on_report_id"[0m
- [1m[35mSQL (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140803073707'
- [1m[36m (195.3ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mBilling::PaymentType Load (1.3ms)[0m [1mSELECT "billing_payment_types".* FROM "billing_payment_types"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to RenameBillingAccountToBill (20140803073707)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m ALTER TABLE "billing_accounts" RENAME TO "billing_bills"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_report_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m DROP INDEX "index_billing_accounts_on_report_id"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_accounts_on_extface_job_id"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m DROP INDEX "index_billing_accounts_on_origin_id"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_bills_on_billable_id_and_billable_type" ON "billing_bills" ("billable_id", "billable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_accounts_on_billable_id_and_billable_type"[0m
- [1m[35m (0.3ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("bill_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_revenue_at" ON "abilling_charges" ("revenue_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_deleted_at" ON "abilling_charges" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_origin_id" ON "abilling_charges" ("origin_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
- [1m[36m (0.4ms)[0m [1mDROP TABLE "abilling_charges"[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m DROP INDEX "index_billing_charges_on_account_id"
- [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_modifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_modifiers_on_account_id" ON "abilling_modifiers" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_modifiers"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_modifiers"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_modifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_modifiers_on_account_id" ON "billing_modifiers" ("bill_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_modifiers"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_modifiers"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_modifiers_on_account_id"[0m
- [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_payments"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_payments"[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("bill_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_payments"
- [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_payments"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_account_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m DROP INDEX "index_billing_payments_on_account_id"
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140803073707"]]
- [1m[35m (220.5ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (1.0ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddQtyToBillingCharge (20140804065726)
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36m (1.5ms)[0m [1mALTER TABLE "billing_charges" ADD "qty" decimal(6,3)[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140804065726"]]
- [1m[36m (158.3ms)[0m [1mcommit transaction[0m
-Migrating to AddTaxGroupToBillingCharge (20140804070011)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_charges" ADD "tax_group_id" integer[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_charges_on_tax_group_id" ON "billing_charges" ("tax_group_id")
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140804070011"]]
- [1m[35m (160.2ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddTaxGroupToBillingCharge (20140804070011)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.9ms)[0m CREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime, "qty" decimal(6,3), "tax_group_id" integer)
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
- [1m[35m (0.3ms)[0m CREATE INDEX "tindex_abilling_charges_on_tax_group_id" ON "abilling_charges" ("tax_group_id")
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_charges_on_bill_id" ON "abilling_charges" ("bill_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_revenue_at" ON "abilling_charges" ("revenue_at")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_deleted_at" ON "abilling_charges" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_charges_on_origin_id" ON "abilling_charges" ("origin_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_id_and_chargable_type" ON "abilling_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.2ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.6ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.5ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime, "qty" decimal(6,3)) [0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_charges_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
- [1m[35m (0.4ms)[0m DROP TABLE "abilling_charges"
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140804070011'[0m
- [1m[35m (166.5ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddTaxRatioToBillingCharge (20140804070517)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_charges" ADD "tax_ratio" decimal(6,3)[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140804070517"]]
- [1m[36m (187.8ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddTransferDeviceToBillingOrigin (20141001185321)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_origins" ADD "transfer_device_id" integer[0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_origins_on_transfer_device_id" ON "billing_origins" ("transfer_device_id")[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141001185321"]]
- [1m[36m (188.0ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.7ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddFDetailedToBillingReport (20141001194537)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_reports" ADD "f_detailed" boolean[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141001194537"]]
- [1m[36m (463.7ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.4ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddFAmountToBillingReport (20141027234750)
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36m (0.7ms)[0m [1mALTER TABLE "billing_reports" ADD "f_amount" money[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141027234750"]]
- [1m[36m (186.5ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddFAmountToBillingReport (20141027234750)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddFAmountToBillingReport (20141027234750)
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddFAmountToBillingReport (20141027234750)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (163.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
- [1m[35m (0.1ms)[0m select sqlite_version(*)
- [1m[36m (107.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to CreateBillingAccounts (20140717180443)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m CREATE TABLE "billing_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_accounts_on_billable_id_and_billable_type" ON "billing_accounts" ("billable_id", "billable_type")[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717180443"]]
- [1m[36m (125.5ms)[0m [1mcommit transaction[0m
-Migrating to CreateBillingCharges (20140717181134)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_account_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717181134"]]
- [1m[35m (134.7ms)[0m commit transaction
-Migrating to CreateBillingDiscounts (20140717181406)
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m CREATE TABLE "billing_discounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_discounts_on_account_id" ON "billing_discounts" ("account_id")[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717181406"]]
- [1m[36m (128.2ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "billing_discounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.5ms)[0m [1mCREATE INDEX "index_billing_discounts_on_account_id" ON "billing_discounts" ("account_id")[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717181406"]]
+ [1m[36m (100.2ms)[0m [1mcommit transaction[0m
Migrating to CreateBillingPayments (20140717183129)
[1m[35m (0.2ms)[0m begin transaction
- [1m[36m (0.6ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717183129"]]
- [1m[35m (127.5ms)[0m commit transaction
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.4ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717183129"]]
+ [1m[35m (100.1ms)[0m commit transaction
Migrating to CreateBillingOrigins (20140717202527)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m CREATE TABLE "billing_origins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717202527"]]
- [1m[35m (128.3ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "billing_origins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717202527"]]
+ [1m[35m (103.3ms)[0m commit transaction
Migrating to CreateProfiles (20140718104656)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718104656"]]
- [1m[35m (136.5ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718104656"]]
+ [1m[35m (86.1ms)[0m commit transaction
Migrating to AddSumariesToBillingAccount (20140718164841)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m ALTER TABLE "billing_accounts" ADD "charges_sum_cents" integer DEFAULT 0 NOT NULL
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_accounts" ADD "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_accounts" ADD "discounts_sum_cents" integer DEFAULT 0 NOT NULL
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_accounts" ADD "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
- [1m[35m (0.5ms)[0m ALTER TABLE "billing_accounts" ADD "payments_sum_cents" integer DEFAULT 0 NOT NULL
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_accounts" ADD "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_accounts" ADD "total_cents" integer DEFAULT 0 NOT NULL
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_accounts" ADD "total_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_accounts" ADD "balance_cents" integer DEFAULT 0 NOT NULL
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_accounts" ADD "balance_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140718164841"]]
- [1m[36m (115.4ms)[0m [1mcommit transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.9ms)[0m ALTER TABLE "billing_accounts" ADD "charges_sum_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_accounts" ADD "charges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_accounts" ADD "discounts_sum_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_accounts" ADD "discounts_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_accounts" ADD "payments_sum_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_accounts" ADD "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_accounts" ADD "total_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_accounts" ADD "total_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_accounts" ADD "balance_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_accounts" ADD "balance_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140718164841"]]
+ [1m[36m (100.6ms)[0m [1mcommit transaction[0m
Migrating to AddFixedValueToBillingDiscount (20140718210349)
[1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_discounts" ADD "fixed_value_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_discounts" ADD "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718210349"]]
- [1m[35m (97.2ms)[0m commit transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_discounts" ADD "fixed_value_cents" integer DEFAULT 0 NOT NULL[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_discounts" ADD "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718210349"]]
+ [1m[35m (73.4ms)[0m commit transaction
Migrating to CreateBillingPaymentTypes (20140718212116)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m CREATE TABLE "billing_payment_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "cash" boolean, "fiscal" boolean, "created_at" datetime, "updated_at" datetime)
+ [1m[35m (0.5ms)[0m CREATE TABLE "billing_payment_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "cash" boolean, "fiscal" boolean, "created_at" datetime, "updated_at" datetime)
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718212116"]]
- [1m[35m (129.1ms)[0m commit transaction
+ [1m[35m (92.5ms)[0m commit transaction
Migrating to CreateBillingTaxGroups (20140719094023)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094023"]]
- [1m[35m (138.4ms)[0m commit transaction
-Migrating to CreateBillingPlus (20140719094033)
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.8ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094033"]]
- [1m[35m (136.9ms)[0m commit transaction
-Migrating to CreateBillingProfiles (20140719094418)
+ [1m[35m (0.7ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094023"]]
+ [1m[35m (101.2ms)[0m commit transaction
+Migrating to CreateBillingPlus (20140719094033)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094418"]]
- [1m[35m (138.3ms)[0m commit transaction
+ [1m[35m (0.5ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094033"]]
+ [1m[35m (112.1ms)[0m commit transaction
+Migrating to CreateBillingProfiles (20140719094418)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.1ms)[0m CREATE TABLE "billing_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094418"]]
+ [1m[35m (117.7ms)[0m commit transaction
Migrating to RenameBillingDiscountsToModifiers (20140719103621)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m ALTER TABLE "billing_discounts" RENAME TO "billing_modifiers"
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.9ms)[0m ALTER TABLE "billing_discounts" RENAME TO "billing_modifiers"
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_discounts_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_discounts_on_account_id' AND type='index'
[0m
- [1m[35m (0.2ms)[0m SELECT sql
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_discounts_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -12866,93 +110,93 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_discounts_on_account_id' AND type='index'
[0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_modifiers_on_account_id" ON "billing_modifiers" ("account_id")
- [1m[36m (0.2ms)[0m [1m SELECT sql
+ [1m[35m (0.6ms)[0m CREATE INDEX "index_billing_modifiers_on_account_id" ON "billing_modifiers" ("account_id")
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_modifiers_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_modifiers_on_account_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_discounts_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_discounts_on_account_id' AND type='index'
- [1m[36m (0.3ms)[0m [1mDROP INDEX "index_billing_discounts_on_account_id"[0m
+ [1m[36m (0.7ms)[0m [1mDROP INDEX "index_billing_discounts_on_account_id"[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140719103621"]]
- [1m[36m (134.1ms)[0m [1mcommit transaction[0m
+ [1m[36m (111.5ms)[0m [1mcommit transaction[0m
Migrating to AddSurchargesSumToBillingAccount (20140719110412)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_accounts" ADD "surcharges_sum_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_accounts" ADD "surcharges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719110412"]]
- [1m[35m (208.7ms)[0m commit transaction
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (1.1ms)[0m [1mALTER TABLE "billing_accounts" ADD "surcharges_sum_cents" integer DEFAULT 0 NOT NULL[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_accounts" ADD "surcharges_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719110412"]]
+ [1m[35m (75.6ms)[0m commit transaction
Migrating to AddTypeToBillingPayment (20140720110811)
- [1m[36m (0.3ms)[0m [1mbegin transaction[0m
- [1m[35m (0.8ms)[0m ALTER TABLE "billing_payments" ADD "type" varchar(255)
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_payments" ADD "payment_type_id" integer[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_payments" ADD "type" varchar(255)
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_payments" ADD "payment_type_id" integer[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140720110811"]]
- [1m[36m (138.7ms)[0m [1mcommit transaction[0m
+ [1m[36m (69.5ms)[0m [1mcommit transaction[0m
Migrating to AddTypeToBillingPaymentType (20140720132559)
[1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_payment_types" ADD "type" varchar(255)[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140720132559"]]
- [1m[36m (130.3ms)[0m [1mcommit transaction[0m
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "billing_payment_types" ADD "type" varchar(255)[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140720132559"]]
+ [1m[36m (68.3ms)[0m [1mcommit transaction[0m
Migrating to CreateBillingOperators (20140721172932)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mCREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140721172932"]]
- [1m[36m (121.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140721172932"]]
+ [1m[36m (79.3ms)[0m [1mcommit transaction[0m
Migrating to CreateBillingDepartments (20140721173106)
[1m[35m (0.2ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mCREATE TABLE "billing_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "tax_group_id" integer, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140721173106"]]
- [1m[36m (112.3ms)[0m [1mcommit transaction[0m
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "billing_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "tax_group_id" integer, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140721173106"]]
+ [1m[36m (110.8ms)[0m [1mcommit transaction[0m
Migrating to ChangeTableBaseBillingTaxGroup (20140722160242)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.7ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "master_id" integer[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_tax_groups" ADD "number" integer
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "percent_ratio" decimal(6,3)[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_tax_groups" ADD "banned" boolean
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "type" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_tax_groups" ADD "deleted_at" datetime
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.9ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "master_id" integer[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_tax_groups" ADD "number" integer
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "percent_ratio" decimal(6,3)[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_tax_groups" ADD "banned" boolean
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "type" varchar(255)[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_tax_groups" ADD "deleted_at" datetime
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160242"]]
- [1m[35m (125.1ms)[0m commit transaction
+ [1m[35m (97.6ms)[0m commit transaction
Migrating to ChangeTableBaseBillingOperator (20140722160258)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m ALTER TABLE "billing_operators" ADD "number" integer
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.0ms)[0m ALTER TABLE "billing_operators" ADD "number" integer
[1m[36m (0.4ms)[0m [1mALTER TABLE "billing_operators" ADD "banned" boolean[0m
- [1m[35m (0.6ms)[0m ALTER TABLE "billing_operators" ADD "deleted_at" datetime
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160258"]]
- [1m[35m (135.2ms)[0m commit transaction
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_operators" ADD "deleted_at" datetime
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160258"]]
+ [1m[35m (70.7ms)[0m commit transaction
Migrating to ChangeTableBaseBillingPaymentType (20140722160529)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_payment_types" ADD "master_id" integer
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payment_types" ADD "number" integer[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_payment_types" ADD "banned" boolean
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payment_types" ADD "deleted_at" datetime[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722160529"]]
- [1m[36m (137.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_payment_types" ADD "master_id" integer
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_payment_types" ADD "number" integer[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_payment_types" ADD "banned" boolean
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_payment_types" ADD "deleted_at" datetime[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722160529"]]
+ [1m[36m (85.2ms)[0m [1mcommit transaction[0m
Migrating to ChangeTableBaseBillingDepartments (20140722160902)
[1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_departments" ADD "number" integer[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_departments" ADD "banned" boolean
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_departments" ADD "deleted_at" datetime[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160902"]]
- [1m[35m (203.5ms)[0m commit transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_departments" ADD "number" integer[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_departments" ADD "banned" boolean
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_departments" ADD "deleted_at" datetime[0m
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160902"]]
+ [1m[35m (97.2ms)[0m commit transaction
Migrating to ChangeTableBaseBillingPlus (20140722161743)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_plus" ADD "master_id" integer
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_plus" ADD "master_id" integer
[1m[36m (0.2ms)[0m [1mALTER TABLE "billing_plus" ADD "tax_group_id" integer[0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")
[1m[36m (0.2ms)[0m [1mALTER TABLE "billing_plus" ADD "department_id" integer[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
@@ -12961,84 +205,84 @@
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_plus" ADD "number" integer
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_plus" ADD "price_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_plus" ADD "price_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_plus" ADD "code" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_plus" ADD "type" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_plus" ADD "banned" boolean[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_plus" ADD "deleted_at" datetime
+ [1m[35m (0.2ms)[0m ALTER TABLE "billing_plus" ADD "number" integer
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_plus" ADD "price_cents" integer DEFAULT 0 NOT NULL[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_plus" ADD "price_currency" varchar(255) DEFAULT 'USD' NOT NULL
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_plus" ADD "code" varchar(255)[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_plus" ADD "type" varchar(255)
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_plus" ADD "banned" boolean[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_plus" ADD "deleted_at" datetime
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722161743"]]
- [1m[35m (156.3ms)[0m commit transaction
+ [1m[35m (107.9ms)[0m commit transaction
Migrating to ChangeTableBaseBillingOrigins (20140722162315)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_origins" ADD "master_id" integer
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_origins" ADD "fiscal_device_id" integer[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_origins" ADD "banned" boolean
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_origins" ADD "deleted_at" datetime[0m
- [1m[35m (0.1ms)[0m ALTER TABLE "billing_origins" ADD "type" varchar(255)
- [1m[36m (0.1ms)[0m [1mALTER TABLE "billing_origins" ADD "payment_model" varchar(255) DEFAULT 'Billing::PaymentWithType'[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722162315"]]
- [1m[35m (120.4ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_origins" ADD "master_id" integer
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_origins" ADD "fiscal_device_id" integer[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_origins" ADD "banned" boolean
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_origins" ADD "deleted_at" datetime[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_origins" ADD "type" varchar(255)
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_origins" ADD "payment_model" varchar(255) DEFAULT 'Billing::PaymentWithType'[0m
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722162315"]]
+ [1m[35m (138.5ms)[0m commit transaction
Migrating to AddOriginToBillingAccount (20140724173527)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m ALTER TABLE "billing_accounts" ADD "origin_id" integer
- [1m[36m (0.2ms)[0m [1m SELECT sql
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.3ms)[0m ALTER TABLE "billing_accounts" ADD "origin_id" integer
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_accounts_on_origin_id" ON "billing_accounts" ("origin_id")
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140724173527"]]
- [1m[35m (136.4ms)[0m commit transaction
+ [1m[35m (0.5ms)[0m CREATE INDEX "index_billing_accounts_on_origin_id" ON "billing_accounts" ("origin_id")
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140724173527"]]
+ [1m[35m (130.1ms)[0m commit transaction
Migrating to RemoveOriginAndFiscalDeficeFromBillingPayment (20140724173917)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.0ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer)
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_payments"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "billing_payments"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer) [0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.4ms)[0m CREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")
+ [1m[36m (0.2ms)[0m [1mSELECT * FROM "billing_payments"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "billing_payments"
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer) [0m
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "abilling_payments"
- [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_payments"[0m
- [1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer)
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.4ms)[0m [1mCREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")[0m
+ [1m[35m (0.2ms)[0m SELECT * FROM "abilling_payments"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "abilling_payments"[0m
+ [1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer)
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")
+ [1m[35m (0.3ms)[0m CREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")
[1m[36m (0.2ms)[0m [1mSELECT * FROM "billing_payments"[0m
- [1m[35m (0.5ms)[0m DROP TABLE "billing_payments"
- [1m[36m (0.3ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer) [0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.6ms)[0m DROP TABLE "billing_payments"
+ [1m[36m (0.4ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer) [0m
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13046,25 +290,25 @@
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")[0m
[1m[35m (0.1ms)[0m SELECT * FROM "abilling_payments"
[1m[36m (0.3ms)[0m [1mDROP TABLE "abilling_payments"[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140724173917"]]
- [1m[36m (759.0ms)[0m [1mcommit transaction[0m
+ [1m[36m (115.6ms)[0m [1mcommit transaction[0m
Migrating to AddStatusToBillingPayment (20140725122914)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_payments" ADD "status" varchar(255)[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725122914"]]
- [1m[36m (423.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.9ms)[0m [1mALTER TABLE "billing_payments" ADD "status" varchar(255)[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725122914"]]
+ [1m[36m (84.8ms)[0m [1mcommit transaction[0m
Migrating to EqalizeSchemasBillingCharge (20140725142525)
[1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_charges" ADD "name" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "description" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "origin_id" integer[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_charges" ADD "value_cents" integer DEFAULT 0 NOT NULL
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "value_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_charges" ADD "deleted_at" datetime
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_charges" ADD "revenue_at" datetime[0m
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_charges" ADD "name" varchar(255)[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_charges" ADD "description" varchar(255)
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_charges" ADD "origin_id" integer[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_charges" ADD "value_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_charges" ADD "value_currency" varchar(255) DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_charges" ADD "deleted_at" datetime
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_charges" ADD "revenue_at" datetime[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
UNION ALL
SELECT sql
@@ -13102,12 +346,12 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_account_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13119,11 +363,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_origin_id' AND type='index'
- [1m[36m (0.2ms)[0m [1m SELECT sql
+ [1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13135,393 +379,393 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_account_id' AND type='index'
- [1m[36m (0.4ms)[0m [1mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
+ [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725142525"]]
- [1m[36m (154.1ms)[0m [1mcommit transaction[0m
+ [1m[36m (101.1ms)[0m [1mcommit transaction[0m
Migrating to EqalizeSchemasBillingDepartment (20140725143734)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725143734"]]
- [1m[35m (163.2ms)[0m commit transaction
+ [1m[35m (96.6ms)[0m commit transaction
Migrating to EqalizeSchemasBillingClosure (20140725145640)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_closures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar(255) DEFAULT 'USD' NOT NULL, "note" text, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar(255))
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_closures_on_origin_id" ON "billing_closures" ("origin_id")[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725145640"]]
- [1m[36m (169.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "billing_closures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar(255) DEFAULT 'USD' NOT NULL, "note" text, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar(255))
+ [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_closures_on_origin_id" ON "billing_closures" ("origin_id")[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725145640"]]
+ [1m[36m (101.2ms)[0m [1mcommit transaction[0m
Migrating to EqalizeSchemasBillingOperators (20140725145953)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_operators_on_deleted_at" ON "billing_operators" ("deleted_at")[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725145953"]]
- [1m[36m (237.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_billing_operators_on_deleted_at" ON "billing_operators" ("deleted_at")[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725145953"]]
+ [1m[36m (102.0ms)[0m [1mcommit transaction[0m
Migrating to EqalizeSchemasBillingOrigin (20140725150329)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
[0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725150329"]]
- [1m[35m (219.0ms)[0m commit transaction
+ [1m[35m (0.6ms)[0m CREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725150329"]]
+ [1m[35m (109.0ms)[0m commit transaction
Migrating to EqalizeSchemasBillingPaymentType (20140725151522)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "billing_payment_types" ADD "print_copy" boolean
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725151522"]]
- [1m[36m (418.4ms)[0m [1mcommit transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.9ms)[0m ALTER TABLE "billing_payment_types" ADD "print_copy" boolean
+ [1m[36m (0.5ms)[0m [1mCREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725151522"]]
+ [1m[36m (100.7ms)[0m [1mcommit transaction[0m
Migrating to EqalizeSchemasBillingPayment (20140725152125)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_payments" ADD "name" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_payments" ADD "description" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payments" ADD "external_token" varchar(255)[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_payments" ADD "note" varchar(255)
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_payments" ADD "closure_id" integer[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_payments" ADD "deleted_at" datetime
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.9ms)[0m [1mALTER TABLE "billing_payments" ADD "name" varchar(255)[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_payments" ADD "description" varchar(255)
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_payments" ADD "external_token" varchar(255)[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_payments" ADD "note" varchar(255)
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_payments" ADD "closure_id" integer[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_payments" ADD "deleted_at" datetime
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[35m (0.4ms)[0m CREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_payments_on_closure_id" ON "billing_payments" ("closure_id")[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725152125"]]
- [1m[36m (143.4ms)[0m [1mcommit transaction[0m
+ [1m[36m (0.4ms)[0m [1mCREATE INDEX "index_billing_payments_on_closure_id" ON "billing_payments" ("closure_id")[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725152125"]]
+ [1m[36m (109.1ms)[0m [1mcommit transaction[0m
Migrating to EqalizeSchemasBillingVersion (20140725153215)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mCREATE TABLE "billing_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar(255) NOT NULL, "item_id" integer NOT NULL, "event" varchar(255) NOT NULL, "whodunnit" varchar(255), "object" text, "created_at" datetime, "ip" varchar(255), "user_agent" varchar(255)) [0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725153215"]]
- [1m[35m (203.5ms)[0m commit transaction
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "billing_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar(255) NOT NULL, "item_id" integer NOT NULL, "event" varchar(255) NOT NULL, "whodunnit" varchar(255), "object" text, "created_at" datetime, "ip" varchar(255), "user_agent" varchar(255)) [0m
+ [1m[35m (0.5ms)[0m CREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725153215"]]
+ [1m[35m (106.9ms)[0m commit transaction
Migrating to EqalizeSchemasBillingPtFpMapping (20140725153658)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m CREATE TABLE "billing_pt_fp_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_type_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_pt_fp_mappings_on_extface_driver_id" ON "billing_pt_fp_mappings" ("extface_driver_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "billing_pt_fp_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_type_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.6ms)[0m [1mCREATE INDEX "index_billing_pt_fp_mappings_on_extface_driver_id" ON "billing_pt_fp_mappings" ("extface_driver_id")[0m
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_pt_fp_mappings_on_payment_type_id" ON "billing_pt_fp_mappings" ("payment_type_id")[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725153658"]]
- [1m[36m (720.7ms)[0m [1mcommit transaction[0m
+ [1m[36m (0.4ms)[0m [1mCREATE INDEX "index_billing_pt_fp_mappings_on_payment_type_id" ON "billing_pt_fp_mappings" ("payment_type_id")[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725153658"]]
+ [1m[36m (105.6ms)[0m [1mcommit transaction[0m
Migrating to AddExtfaceJobToBillingAccount (20140725164847)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_accounts" ADD "extface_job_id" integer[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (1.0ms)[0m [1mALTER TABLE "billing_accounts" ADD "extface_job_id" integer[0m
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_accounts_on_extface_job_id" ON "billing_accounts" ("extface_job_id")
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725164847"]]
- [1m[35m (170.0ms)[0m commit transaction
+ [1m[35m (0.5ms)[0m CREATE INDEX "index_billing_accounts_on_extface_job_id" ON "billing_accounts" ("extface_job_id")
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725164847"]]
+ [1m[35m (99.1ms)[0m commit transaction
Migrating to RenameClosureToBillingReport (20140726163220)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_closures" RENAME TO "billing_reports"
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.0ms)[0m ALTER TABLE "billing_closures" RENAME TO "billing_reports"
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_closures_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_closures_on_origin_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_closures_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_closures_on_origin_id' AND type='index'
- [1m[36m (0.2ms)[0m [1m SELECT sql
+ [1m[36m (0.4ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_closures_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_closures_on_origin_id' AND type='index'
[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[35m (0.6ms)[0m CREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_reports_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_reports_on_origin_id' AND type='index'
[0m
- [1m[35m (0.2ms)[0m SELECT sql
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_closures_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_closures_on_origin_id' AND type='index'
- [1m[36m (0.4ms)[0m [1mDROP INDEX "index_billing_closures_on_origin_id"[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140726163220"]]
- [1m[36m (143.1ms)[0m [1mcommit transaction[0m
+ [1m[36m (0.6ms)[0m [1mDROP INDEX "index_billing_closures_on_origin_id"[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140726163220"]]
+ [1m[36m (104.1ms)[0m [1mcommit transaction[0m
Migrating to RemoveClosureFromBillingAccount (20140726165718)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.4ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_closure_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_closure_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
[0m
- [1m[35m (0.2ms)[0m DROP INDEX "index_billing_payments_on_closure_id"
- [1m[36m (0.3ms)[0m [1mCREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "closure_id" integer, "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.6ms)[0m DROP INDEX "index_billing_payments_on_closure_id"
+ [1m[36m (0.7ms)[0m [1mCREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "closure_id" integer, "deleted_at" datetime) [0m
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")
+ [1m[35m (0.3ms)[0m CREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_payments"[0m
- [1m[35m (0.4ms)[0m DROP TABLE "billing_payments"
+ [1m[35m (0.3ms)[0m CREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("account_id")
+ [1m[36m (0.2ms)[0m [1mSELECT * FROM "billing_payments"[0m
+ [1m[35m (0.6ms)[0m DROP TABLE "billing_payments"
[1m[36m (0.5ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime) [0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_id")
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_payments"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_payments"
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140726165718"]]
- [1m[35m (164.4ms)[0m commit transaction
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")
+ [1m[36m (0.2ms)[0m [1mSELECT * FROM "abilling_payments"[0m
+ [1m[35m (0.3ms)[0m DROP TABLE "abilling_payments"
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140726165718"]]
+ [1m[35m (71.4ms)[0m commit transaction
Migrating to AddReportToBillingAccount (20140726170002)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_accounts" ADD "report_id" integer
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.2ms)[0m ALTER TABLE "billing_accounts" ADD "report_id" integer
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_accounts_on_report_id" ON "billing_accounts" ("report_id")
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140726170002"]]
- [1m[35m (376.0ms)[0m commit transaction
+ [1m[35m (0.5ms)[0m CREATE INDEX "index_billing_accounts_on_report_id" ON "billing_accounts" ("report_id")
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140726170002"]]
+ [1m[35m (72.6ms)[0m commit transaction
Migrating to AddAutofinAndFinalizedAtToBillingAccount (20140728110230)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "billing_accounts" ADD "autofin" boolean DEFAULT 't'
- [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_accounts" ADD "finalized_at" datetime[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140728110230"]]
- [1m[36m (121.6ms)[0m [1mcommit transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.8ms)[0m ALTER TABLE "billing_accounts" ADD "autofin" boolean DEFAULT 't'
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_accounts" ADD "finalized_at" datetime[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140728110230"]]
+ [1m[36m (68.1ms)[0m [1mcommit transaction[0m
Migrating to AddNameToBillingAccount (20140729083050)
[1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_accounts" ADD "name" varchar(255)[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140729083050"]]
- [1m[36m (327.0ms)[0m [1mcommit transaction[0m
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "billing_accounts" ADD "name" varchar(255)[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140729083050"]]
+ [1m[36m (70.5ms)[0m [1mcommit transaction[0m
Migrating to AddNumberToBillingAccount (20140729083408)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_accounts" ADD "number" varchar(255)[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140729083408"]]
- [1m[36m (335.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (1.1ms)[0m [1mALTER TABLE "billing_accounts" ADD "number" varchar(255)[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140729083408"]]
+ [1m[36m (101.0ms)[0m [1mcommit transaction[0m
Migrating to AddDeletedAtToBillingModifier (20140729180849)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_modifiers" ADD "deleted_at" datetime[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140729180849"]]
- [1m[36m (434.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.9ms)[0m [1mALTER TABLE "billing_modifiers" ADD "deleted_at" datetime[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140729180849"]]
+ [1m[36m (59.8ms)[0m [1mcommit transaction[0m
Migrating to AddDeletedAtToBillingAccount (20140729182146)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (1.0ms)[0m [1mALTER TABLE "billing_accounts" ADD "deleted_at" datetime[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140729182146"]]
- [1m[36m (457.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (1.2ms)[0m [1mALTER TABLE "billing_accounts" ADD "deleted_at" datetime[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140729182146"]]
+ [1m[36m (76.8ms)[0m [1mcommit transaction[0m
Migrating to RenameBillingAccountToBill (20140803073707)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_accounts" RENAME TO "billing_bills"[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (1.4ms)[0m [1mALTER TABLE "billing_accounts" RENAME TO "billing_bills"[0m
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_report_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.3ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_report_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13541,20 +785,20 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[0m
- [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13574,11 +818,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13590,12 +834,12 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[0m
- [1m[35m (0.5ms)[0m DROP INDEX "index_billing_accounts_on_report_id"
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[35m (0.4ms)[0m DROP INDEX "index_billing_accounts_on_report_id"
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13607,35 +851,35 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13647,77 +891,77 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
[0m
- [1m[35m (0.5ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")[0m
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_extface_job_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
- [1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_accounts_on_extface_job_id"[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[36m (0.2ms)[0m [1mDROP INDEX "index_billing_accounts_on_extface_job_id"[0m
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13729,19 +973,19 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13762,27 +1006,27 @@
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_origin_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13794,11 +1038,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_origin_id' AND type='index'
- [1m[36m (0.2ms)[0m [1m SELECT sql
+ [1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13819,11 +1063,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- [1m[36m (0.2ms)[0m [1m SELECT sql
+ [1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13851,52 +1095,52 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- [1m[36m (0.2ms)[0m [1m SELECT sql
+ [1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
[0m
- [1m[35m (0.2ms)[0m SELECT sql
+ [1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_accounts_on_billable_id_and_billable_type' AND type='index'
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_bills_on_billable_id_and_billable_type" ON "billing_bills" ("billable_id", "billable_type")[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_origin_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_report_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -13959,11 +1203,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_deleted_at" ON "abilling_charges" ("deleted_at")
+ [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_charges_on_deleted_at" ON "abilling_charges" ("deleted_at")
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_charges_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
@@ -13976,11 +1220,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_origin_id" ON "abilling_charges" ("origin_id")[0m
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_origin_id" ON "abilling_charges" ("origin_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_charges_on_origin_id' AND type='index'
UNION ALL
SELECT sql
@@ -14036,12 +1280,12 @@
FROM sqlite_temp_master
WHERE name='tindex_abilling_charges_on_revenue_at' AND type='index'
[0m
[1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("bill_id")
[1m[36m (0.1ms)[0m [1mSELECT * FROM "billing_charges"[0m
- [1m[35m (0.3ms)[0m DROP TABLE "billing_charges"
- [1m[36m (0.2ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime) [0m
+ [1m[35m (0.5ms)[0m DROP TABLE "billing_charges"
+ [1m[36m (0.3ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar(255), "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar(255), "description" varchar(255), "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime) [0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_charges_on_account_id' AND type='index'
UNION ALL
SELECT sql
@@ -14087,11 +1331,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_account_id' AND type='index'
- [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_id_and_chargable_type" ON "billing_charges" ("chargable_id", "chargable_type")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
UNION ALL
SELECT sql
@@ -14104,11 +1348,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_account_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")
+ [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_origin_id' AND type='index'
UNION ALL
SELECT sql
@@ -14162,11 +1406,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_account_id' AND type='index'
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
+ [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
[1m[35m (0.1ms)[0m SELECT * FROM "abilling_charges"
[1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_charges"[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_revenue_at' AND type='index'
@@ -14310,11 +1554,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- [1m[36m (0.2ms)[0m [1m SELECT sql
+ [1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -14344,14 +1588,14 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_modifiers_on_account_id' AND type='index'
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_modifiers_on_account_id" ON "abilling_modifiers" ("bill_id")[0m
+ [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_modifiers_on_account_id" ON "abilling_modifiers" ("bill_id")[0m
[1m[35m (0.1ms)[0m SELECT * FROM "billing_modifiers"
- [1m[36m (0.3ms)[0m [1mDROP TABLE "billing_modifiers"[0m
- [1m[35m (0.3ms)[0m CREATE TABLE "billing_modifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
+ [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_modifiers"[0m
+ [1m[35m (0.2ms)[0m CREATE TABLE "billing_modifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "charge_id" integer, "percent_ratio" decimal(6,3), "created_at" datetime, "updated_at" datetime, "fixed_value_cents" integer DEFAULT 0 NOT NULL, "fixed_value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_modifiers_on_account_id' AND type='index'
UNION ALL
SELECT sql
@@ -14401,11 +1645,11 @@
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_modifiers_on_account_id' AND type='index'
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_billing_modifiers_on_account_id"[0m
- [1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime)
+ [1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime)
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
@@ -14418,23 +1662,23 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")[0m
+ [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='tindex_abilling_payments_on_deleted_at' AND type='index'
[1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_payments_on_account_id" ON "abilling_payments" ("bill_id")[0m
[1m[35m (0.1ms)[0m SELECT * FROM "billing_payments"
- [1m[36m (0.3ms)[0m [1mDROP TABLE "billing_payments"[0m
- [1m[35m (0.4ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime)
+ [1m[36m (0.2ms)[0m [1mDROP TABLE "billing_payments"[0m
+ [1m[35m (0.2ms)[0m CREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar(255) DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar(255), "payment_type_id" integer, "status" varchar(255), "name" varchar(255), "description" varchar(255), "external_token" varchar(255), "note" varchar(255), "deleted_at" datetime)
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='tindex_abilling_payments_on_account_id' AND type='index'
UNION ALL
SELECT sql
@@ -14456,11 +1700,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
+ [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
[1m[35m (0.1ms)[0m SELECT * FROM "abilling_payments"
[1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_payments"[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
@@ -14507,11 +1751,11 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m CREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")
+ [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_bill_id' AND type='index'
UNION ALL
SELECT sql
@@ -14533,253 +1777,91 @@
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_account_id' AND type='index'
[0m
[1m[35m (0.1ms)[0m DROP INDEX "index_billing_payments_on_account_id"
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140803073707"]]
- [1m[35m (372.1ms)[0m commit transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140803073707"]]
+ [1m[35m (103.5ms)[0m commit transaction
Migrating to AddQtyToBillingCharge (20140804065726)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m ALTER TABLE "billing_charges" ADD "qty" decimal(6,3)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.0ms)[0m ALTER TABLE "billing_charges" ADD "qty" decimal(6,3)
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140804065726"]]
- [1m[35m (427.6ms)[0m commit transaction
+ [1m[35m (240.4ms)[0m commit transaction
Migrating to AddTaxRatioToBillingCharge (20140804070517)
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (1.0ms)[0m ALTER TABLE "billing_charges" ADD "tax_ratio" decimal(6,3)
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140804070517"]]
- [1m[35m (311.7ms)[0m commit transaction
+ [1m[35m (1.1ms)[0m ALTER TABLE "billing_charges" ADD "tax_ratio" decimal(6,3)
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140804070517"]]
+ [1m[35m (68.1ms)[0m commit transaction
Migrating to AddTransferDeviceToBillingOrigin (20141001185321)
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.6ms)[0m ALTER TABLE "billing_origins" ADD "transfer_device_id" integer
- [1m[36m (0.2ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.9ms)[0m ALTER TABLE "billing_origins" ADD "transfer_device_id" integer
+ [1m[36m (0.3ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_origins_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_origins_on_deleted_at' AND type='index'
[0m
- [1m[35m (0.3ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
[1m[36m (0.4ms)[0m [1mCREATE INDEX "index_billing_origins_on_transfer_device_id" ON "billing_origins" ("transfer_device_id")[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141001185321"]]
- [1m[36m (810.2ms)[0m [1mcommit transaction[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141001185321"]]
+ [1m[36m (73.7ms)[0m [1mcommit transaction[0m
+Migrating to AddFAmountToBillingReport (20141027235427)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (1.0ms)[0m [1mALTER TABLE "billing_reports" ADD "f_amount_cents" integer DEFAULT 0 NOT NULL[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_reports" ADD "f_amount_currency" varchar(255) DEFAULT 'USD' NOT NULL
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141027235427"]]
+ [1m[35m (75.0ms)[0m commit transaction
+Migrating to BillingTgFpMapping (20141221201539)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m CREATE TABLE "billing_tg_fp_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tax_group_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.4ms)[0m [1mCREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-
+ [1m[36m (0.5ms)[0m [1mCREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141221201539"]]
+ [1m[36m (108.3ms)[0m [1mcommit transaction[0m
+Migrating to BillingOpFpMapping (20141221233912)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.4ms)[0m [1mCREATE TABLE "billing_op_fp_mappings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "operator_id" integer, "extface_driver_id" integer, "mapping" integer, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-[0m
+ [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_op_fp_mappings_on_operator_id" ON "billing_op_fp_mappings" ("operator_id")
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141221233912"]]
+ [1m[35m (85.3ms)[0m commit transaction
+Migrating to CreateBillingResources (20141229234928)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "billing_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "properties" text, "banned" boolean, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "deleted_at" datetime)
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141229234928"]]
+ [1m[35m (84.8ms)[0m commit transaction
+Migrating to AddPwdToBillingOperatorMapping (20150311013019)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_op_fp_mappings" ADD "pwd" varchar(255)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150311013019"]]
+ [1m[35m (64.4ms)[0m commit transaction
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddFAmountToBillingReport (20141027235427)
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_reports" ADD "f_amount_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_reports" ADD "f_amount_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141027235427"]]
- [1m[35m (129.8ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
UNION ALL
SELECT sql
@@ -14816,347 +1898,107 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_bill_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_revenue_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_revenue_at' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_origin_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_departments_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_departments_on_deleted_at' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
-
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to AddFAmountToBillingReport (20141027235427)
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.5ms)[0m CREATE TEMPORARY TABLE "abilling_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar(255) DEFAULT 'USD' NOT NULL, "note" text, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar(255), "f_amount_cents" integer DEFAULT 0 NOT NULL, "f_amount_currency" varchar(255) DEFAULT 'USD' NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.2ms)[0m select sqlite_version(*)
- [1m[36m (0.6ms)[0m [1mCREATE INDEX "tindex_abilling_reports_on_origin_id" ON "abilling_reports" ("origin_id")[0m
- [1m[35m (0.2ms)[0m SELECT * FROM "billing_reports"
- [1m[36m (0.4ms)[0m [1mDROP TABLE "billing_reports"[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "billing_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar(255) DEFAULT 'USD' NOT NULL, "note" text, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar(255), "f_amount_cents" integer DEFAULT 0 NOT NULL)
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='tindex_abilling_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='tindex_abilling_reports_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_reports"[0m
- [1m[35m (0.3ms)[0m DROP TABLE "abilling_reports"
- [1m[36m (0.3ms)[0m [1mCREATE TEMPORARY TABLE "abilling_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar(255) DEFAULT 'USD' NOT NULL, "note" text, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar(255), "f_amount_cents" integer DEFAULT 0 NOT NULL) [0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_reports_on_origin_id" ON "abilling_reports" ("origin_id")[0m
- [1m[35m (0.1ms)[0m SELECT * FROM "billing_reports"
- [1m[36m (0.3ms)[0m [1mDROP TABLE "billing_reports"[0m
- [1m[35m (0.5ms)[0m CREATE TABLE "billing_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "origin_id" integer, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar(255) DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar(255) DEFAULT 'USD' NOT NULL, "note" text, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar(255))
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
- WHERE name='tindex_abilling_reports_on_origin_id' AND type='index'
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
- WHERE name='tindex_abilling_reports_on_origin_id' AND type='index'
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
[0m
- [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")
- [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_reports"[0m
- [1m[35m (0.2ms)[0m DROP TABLE "abilling_reports"
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141027235427'[0m
- [1m[35m (172.3ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.4ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.3ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
WHERE name='index_billing_operators_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_origins_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
@@ -15176,264 +2018,72 @@
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_bill_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_plus_on_department_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_plus_on_department_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- [1m[36m (0.1ms)[0m [1m SELECT sql
+ [1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_billing_reports_on_origin_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_billing_reports_on_origin_id' AND type='index'
[0m
- [1m[35m (0.1ms)[0m SELECT sql
+ [1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
- WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
- [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Migrating to AddFAmountToBillingReport (20141027235427)
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_reports" ADD "f_amount_cents" integer DEFAULT 0 NOT NULL[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "billing_reports" ADD "f_amount_currency" varchar(255) DEFAULT 'USD' NOT NULL
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141027235427"]]
- [1m[35m (203.7ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
-
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_bills_on_report_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_bill_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_revenue_at' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_origin_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_deleted_at' AND type='index'
-[0m
- [1m[35m (0.3ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.5ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_operators_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_bill_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_payments_on_deleted_at' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_department_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
-
- [1m[36m (0.1ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
-[0m
- [1m[35m (0.1ms)[0m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
-
- [1m[36m (0.2ms)[0m [1m SELECT sql
- FROM sqlite_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
- UNION ALL
- SELECT sql
- FROM sqlite_temp_master
- WHERE name='index_billing_reports_on_origin_id' AND type='index'
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
UNION ALL