test/dummy/log/development.log in billing-0.1.3 vs test/dummy/log/development.log in billing-0.1.4
- old
+ new
@@ -3292,5 +3292,5412 @@
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 CreateBillingReceiptConfigs (20160828145106)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.4ms)[0m [1mCREATE TABLE "billing_receipt_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "type" varchar, "name" varchar, "discount_text" varchar, "surcharge_text" varchar, "sound_signal" boolean, "open_cash_drawer" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160828145106"]]
+ [1m[36m (102.4ms)[0m [1mcommit transaction[0m
+Migrating to AddReceiptConfigToBillingOrigin (20160828145448)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_origins" ADD "receipt_config_id" integer[0m
+ [1m[35m (0.1ms)[0m select sqlite_version(*)
+ [1m[36m (0.4ms)[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.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
+ 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_receipt_config_id" ON "billing_origins" ("receipt_config_id")
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160828145448"]]
+ [1m[35m (124.9ms)[0m commit transaction
+Migrating to AddPaperCutToBillingReceiptConfig (20160831231640)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_receipt_configs" ADD "paper_cut" boolean
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160831231640"]]
+ [1m[35m (100.1ms)[0m commit transaction
+Migrating to AddCustomCommandsToBillingReceiptConfig (20170329013520)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_receipt_configs" ADD "custom_commands" boolean
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_receipt_configs" ADD "custom_commands_text" varchar[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170329013520"]]
+ [1m[36m (69.2ms)[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_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.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.2ms)[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.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_op_fp_mappings_on_operator_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
+[0m
+ [1m[35m (0.1ms)[0m SELECT sql
+ FROM sqlite_master
+ 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_op_fp_mappings_on_extface_driver_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_receipt_config_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_origins_on_receipt_config_id' AND type='index'
+
+ [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
+ 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.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.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'
+[0m
+ [1m[35m (0.1ms)[0m SELECT sql
+ FROM sqlite_master
+ 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_tg_fp_mappings_on_tax_group_id' AND type='index'
+
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ 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_tg_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[36m (145.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
+ [1m[35m (0.2ms)[0m select sqlite_version(*)
+ [1m[36m (114.1ms)[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.2ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717180443_create_billing_accounts.rb:6)
+ [1m[35m (0.7ms)[0m CREATE TABLE "billing_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_billing_accounts_on_billable_type_and_billable_id" ON "billing_accounts" ("billable_type", "billable_id")[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717180443"]]
+ [1m[36m (127.8ms)[0m [1mcommit transaction[0m
+Migrating to CreateBillingCharges (20140717181134)
+ [1m[35m (0.1ms)[0m begin transaction
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717181134_create_billing_charges.rb:8)
+ [1m[36m (0.5ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar 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.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 CREATE INDEX "index_billing_charges_on_chargable_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717181134"]]
+ [1m[35m (116.9ms)[0m commit transaction
+Migrating to CreateBillingDiscounts (20140717181406)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717181406_create_billing_discounts.rb:8)
+ [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.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717181406"]]
+ [1m[36m (102.5ms)[0m [1mcommit transaction[0m
+Migrating to CreateBillingPayments (20140717183129)
+ [1m[35m (0.1ms)[0m begin transaction
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717183129_create_billing_payments.rb:7)
+ [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 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.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717183129"]]
+ [1m[35m (108.9ms)[0m commit transaction
+Migrating to CreateBillingOrigins (20140717202527)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717202527_create_billing_origins.rb:6)
+ [1m[35m (0.7ms)[0m CREATE TABLE "billing_origins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717202527"]]
+ [1m[35m (132.7ms)[0m commit transaction
+Migrating to CreateProfiles (20140718104656)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/test/dummy/db/migrate/20140718104656_create_profiles.rb:5)
+ [1m[35m (0.6ms)[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 (126.8ms)[0m commit transaction
+Migrating to AddSumariesToBillingAccount (20140718164841)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_accounts" ADD "charges_sum_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_accounts" ADD "charges_sum_currency" varchar DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.4ms)[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 DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.4ms)[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 DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "billing_accounts" ADD "total_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_accounts" ADD "total_currency" varchar 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.3ms)[0m [1mALTER TABLE "billing_accounts" ADD "balance_currency" varchar DEFAULT 'USD' NOT NULL[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140718164841"]]
+ [1m[36m (98.6ms)[0m [1mcommit transaction[0m
+Migrating to AddFixedValueToBillingDiscount (20140718210349)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_discounts" ADD "fixed_value_cents" integer DEFAULT 0 NOT NULL[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_discounts" ADD "fixed_value_currency" varchar DEFAULT 'USD' NOT NULL
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718210349"]]
+ [1m[35m (81.9ms)[0m commit transaction
+Migrating to CreateBillingPaymentTypes (20140718212116)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140718212116_create_billing_payment_types.rb:8)
+ [1m[35m (0.5ms)[0m CREATE TABLE "billing_payment_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "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 (139.6ms)[0m commit transaction
+Migrating to CreateBillingTaxGroups (20140719094023)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140719094023_create_billing_tax_groups.rb:6)
+ [1m[35m (0.4ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094023"]]
+ [1m[35m (136.5ms)[0m commit transaction
+Migrating to CreateBillingPlus (20140719094033)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140719094033_create_billing_plus.rb:6)
+ [1m[35m (0.6ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094033"]]
+ [1m[35m (143.3ms)[0m commit transaction
+Migrating to CreateBillingProfiles (20140719094418)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140719094418_create_billing_profiles.rb:6)
+ [1m[35m (0.5ms)[0m CREATE TABLE "billing_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094418"]]
+ [1m[35m (129.3ms)[0m commit transaction
+Migrating to RenameBillingDiscountsToModifiers (20140719103621)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[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
+ 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_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 CREATE INDEX "index_billing_modifiers_on_account_id" ON "billing_modifiers" ("account_id")
+ [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_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[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140719103621"]]
+ [1m[36m (131.2ms)[0m [1mcommit transaction[0m
+Migrating to AddSurchargesSumToBillingAccount (20140719110412)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_accounts" ADD "surcharges_sum_cents" integer DEFAULT 0 NOT NULL[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_accounts" ADD "surcharges_sum_currency" varchar DEFAULT 'USD' NOT NULL
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719110412"]]
+ [1m[35m (106.5ms)[0m commit transaction
+Migrating to AddTypeToBillingPayment (20140720110811)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_payments" ADD "type" varchar
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_payments" ADD "payment_type_id" integer[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140720110811"]]
+ [1m[36m (106.7ms)[0m [1mcommit transaction[0m
+Migrating to AddTypeToBillingPaymentType (20140720132559)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_payment_types" ADD "type" varchar[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140720132559"]]
+ [1m[36m (103.0ms)[0m [1mcommit transaction[0m
+Migrating to CreateBillingOperators (20140721172932)
+ [1m[35m (0.1ms)[0m begin transaction
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140721172932_create_billing_operators.rb:8)
+ [1m[36m (0.5ms)[0m [1mCREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "type" varchar, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140721172932"]]
+ [1m[36m (101.9ms)[0m [1mcommit transaction[0m
+Migrating to CreateBillingDepartments (20140721173106)
+ [1m[35m (0.2ms)[0m begin transaction
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140721173106_create_billing_departments.rb:9)
+ [1m[36m (0.5ms)[0m [1mCREATE TABLE "billing_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "tax_group_id" integer, "type" varchar, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140721173106"]]
+ [1m[36m (112.9ms)[0m [1mcommit transaction[0m
+Migrating to ChangeTableBaseBillingTaxGroup (20140722160242)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "master_id" integer[0m
+ [1m[35m (0.3ms)[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[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_tax_groups" ADD "deleted_at" datetime
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160242"]]
+ [1m[35m (81.2ms)[0m commit transaction
+Migrating to ChangeTableBaseBillingOperator (20140722160258)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_operators" ADD "number" integer
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_operators" ADD "banned" boolean[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "billing_operators" ADD "deleted_at" datetime
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160258"]]
+ [1m[35m (87.2ms)[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.2ms)[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 (89.7ms)[0m [1mcommit transaction[0m
+Migrating to ChangeTableBaseBillingDepartments (20140722160902)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_departments" ADD "number" integer[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_departments" ADD "banned" boolean
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_departments" ADD "deleted_at" datetime[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 (135.9ms)[0m commit transaction
+Migrating to ChangeTableBaseBillingPlus (20140722161743)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_plus" ADD "master_id" integer
+ [1m[36m (0.3ms)[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
+ 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.3ms)[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.3ms)[0m ALTER TABLE "billing_plus" ADD "price_currency" varchar DEFAULT 'USD' NOT NULL
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_plus" ADD "code" varchar[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_plus" ADD "type" varchar
+ [1m[36m (0.2ms)[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.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722161743"]]
+ [1m[35m (131.1ms)[0m commit transaction
+Migrating to ChangeTableBaseBillingOrigins (20140722162315)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[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
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_origins" ADD "payment_model" varchar 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.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722162315"]]
+ [1m[35m (140.7ms)[0m commit transaction
+Migrating to AddOriginToBillingAccount (20140724173527)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_accounts" ADD "origin_id" integer
+ [1m[36m (0.2ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_accounts_on_origin_id" ON "billing_accounts" ("origin_id")
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140724173527"]]
+ [1m[35m (142.9ms)[0m commit transaction
+Migrating to RemoveOriginAndFiscalDeficeFromBillingPayment (20140724173917)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "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.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.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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "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.3ms)[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.3ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "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.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.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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer) [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.2ms)[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[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140724173917"]]
+ [1m[36m (108.9ms)[0m [1mcommit transaction[0m
+Migrating to AddStatusToBillingPayment (20140725122914)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_payments" ADD "status" varchar[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725122914"]]
+ [1m[36m (116.0ms)[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[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_charges" ADD "description" varchar
+ [1m[36m (0.3ms)[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 DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_charges" ADD "deleted_at" datetime
+ [1m[36m (0.3ms)[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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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.3ms)[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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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.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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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 "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 (136.9ms)[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.3ms)[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 (121.0ms)[0m commit transaction
+Migrating to EqalizeSchemasBillingClosure (20140725145640)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[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 DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar DEFAULT 'USD' NOT NULL, "note" text, "type" varchar, "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar)
+ [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 (117.0ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingOperators (20140725145953)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.5ms)[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 (119.3ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingOrigin (20140725150329)
+ [1m[35m (0.1ms)[0m begin transaction
+ [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.5ms)[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 (118.4ms)[0m commit transaction
+Migrating to EqalizeSchemasBillingPaymentType (20140725151522)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_payment_types" ADD "print_copy" boolean
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725151522"]]
+ [1m[36m (111.6ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingPayment (20140725152125)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "billing_payments" ADD "name" varchar[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_payments" ADD "description" varchar
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_payments" ADD "external_token" varchar[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_payments" ADD "note" varchar
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_payments" ADD "closure_id" integer[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_payments" ADD "deleted_at" datetime
+ [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.3ms)[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
+ 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 (137.5ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingVersion (20140725153215)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.4ms)[0m [1mCREATE TABLE "billing_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text, "created_at" datetime, "ip" varchar, "user_agent" varchar) [0m
+ [1m[35m (0.2ms)[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 (110.1ms)[0m commit transaction
+Migrating to EqalizeSchemasBillingPtFpMapping (20140725153658)
+ [1m[36m (0.1ms)[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.4ms)[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.3ms)[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 (107.0ms)[0m [1mcommit transaction[0m
+Migrating to AddExtfaceJobToBillingAccount (20140725164847)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_accounts" ADD "extface_job_id" integer[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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.3ms)[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 (151.9ms)[0m commit transaction
+Migrating to RenameClosureToBillingReport (20140726163220)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[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 [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
+ 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_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 [1mDROP INDEX "index_billing_closures_on_origin_id"[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140726163220"]]
+ [1m[36m (109.5ms)[0m [1mcommit transaction[0m
+Migrating to RemoveClosureFromBillingAccount (20140726165718)
+ [1m[35m (0.2ms)[0m begin transaction
+ [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.4ms)[0m DROP INDEX "index_billing_payments_on_closure_id"
+ [1m[36m (0.4ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "closure_id" integer, "deleted_at" datetime) [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.3ms)[0m CREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")
+ [1m[36m (0.3ms)[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.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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "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.2ms)[0m [1mCREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_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.2ms)[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[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140726165718"]]
+ [1m[36m (99.7ms)[0m [1mcommit transaction[0m
+Migrating to AddReportToBillingAccount (20140726170002)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "billing_accounts" ADD "report_id" integer[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.1ms)[0m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.2ms)[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 (108.7ms)[0m [1mcommit transaction[0m
+Migrating to AddAutofinAndFinalizedAtToBillingAccount (20140728110230)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "billing_accounts" ADD "autofin" boolean DEFAULT 't'[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_accounts" ADD "finalized_at" datetime
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140728110230"]]
+ [1m[35m (101.5ms)[0m commit transaction
+Migrating to AddNameToBillingAccount (20140729083050)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_accounts" ADD "name" varchar
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729083050"]]
+ [1m[35m (103.5ms)[0m commit transaction
+Migrating to AddNumberToBillingAccount (20140729083408)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.0ms)[0m ALTER TABLE "billing_accounts" ADD "number" varchar
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729083408"]]
+ [1m[35m (109.6ms)[0m commit transaction
+Migrating to AddDeletedAtToBillingModifier (20140729180849)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_modifiers" ADD "deleted_at" datetime
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729180849"]]
+ [1m[35m (103.3ms)[0m commit transaction
+Migrating to AddDeletedAtToBillingAccount (20140729182146)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.8ms)[0m ALTER TABLE "billing_accounts" ADD "deleted_at" datetime
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729182146"]]
+ [1m[35m (102.7ms)[0m commit transaction
+Migrating to RenameBillingAccountToBill (20140803073707)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.0ms)[0m ALTER TABLE "billing_accounts" RENAME TO "billing_bills"
+ [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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")[0m
+ [1m[35m (0.2ms)[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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.3ms)[0m [1mDROP INDEX "index_billing_accounts_on_report_id"[0m
+ [1m[35m (0.2ms)[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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")
+ [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.2ms)[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.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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.3ms)[0m DROP INDEX "index_billing_accounts_on_extface_job_id"
+ [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.2ms)[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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_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.2ms)[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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.4ms)[0m [1mCREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")[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.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.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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.2ms)[0m [1mDROP INDEX "index_billing_accounts_on_origin_id"[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.2ms)[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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' 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.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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_bills_on_billable_type_and_billable_id" ON "billing_bills" ("billable_type", "billable_id")
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' 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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.2ms)[0m DROP INDEX "index_billing_accounts_on_billable_type_and_billable_id"
+ [1m[36m (0.3ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime) [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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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_revenue_at" ON "abilling_charges" ("revenue_at")[0m
+ [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_charges_on_deleted_at" ON "abilling_charges" ("deleted_at")
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_origin_id" ON "abilling_charges" ("origin_id")[0m
+ [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_type_and_chargable_id" ON "abilling_charges" ("chargable_type", "chargable_id")
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("bill_id")[0m
+ [1m[35m (0.1ms)[0m SELECT * FROM "billing_charges"
+ [1m[36m (0.3ms)[0m [1mDROP TABLE "billing_charges"[0m
+ [1m[35m (0.3ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='tindex_abilling_charges_on_chargable_type_and_chargable_id' 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.2ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("bill_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_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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 "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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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 "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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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.2ms)[0m CREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")
+ [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
+ [1m[35m (0.2ms)[0m DROP TABLE "abilling_charges"
+ [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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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.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.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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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.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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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 CREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")
+ [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.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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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 [1mDROP INDEX "index_billing_charges_on_account_id"[0m
+ [1m[35m (0.3ms)[0m CREATE 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 DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
+ [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 CREATE INDEX "tindex_abilling_modifiers_on_account_id" ON "abilling_modifiers" ("bill_id")
+ [1m[36m (0.2ms)[0m [1mSELECT * FROM "billing_modifiers"[0m
+ [1m[35m (0.3ms)[0m DROP TABLE "billing_modifiers"
+ [1m[36m (0.3ms)[0m [1mCREATE 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 DEFAULT 'USD' NOT NULL, "deleted_at" datetime) [0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_modifiers_on_account_id" ON "billing_modifiers" ("bill_id")[0m
+ [1m[35m (0.1ms)[0m SELECT * FROM "abilling_modifiers"
+ [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_modifiers"[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 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 [1mCREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")[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 [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 DROP INDEX "index_billing_modifiers_on_account_id"
+ [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "deleted_at" datetime) [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 "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")
+ [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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "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.2ms)[0m [1mCREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("bill_id")[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.3ms)[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.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.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.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.3ms)[0m CREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")
+ [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_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_account_id"
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140803073707"]]
+ [1m[35m (107.9ms)[0m commit transaction
+Migrating to AddQtyToBillingCharge (20140804065726)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[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 (94.3ms)[0m commit transaction
+Migrating to AddTaxRatioToBillingCharge (20140804070517)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[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 (87.0ms)[0m commit transaction
+Migrating to AddTransferDeviceToBillingOrigin (20141001185321)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_origins" ADD "transfer_device_id" integer
+ [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.3ms)[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 (101.4ms)[0m [1mcommit transaction[0m
+Migrating to AddFAmountToBillingReport (20141027235427)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_reports" ADD "f_amount_cents" integer DEFAULT 0 NOT NULL[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_reports" ADD "f_amount_currency" varchar DEFAULT 'USD' NOT NULL
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141027235427"]]
+ [1m[35m (94.6ms)[0m commit transaction
+Migrating to BillingTgFpMapping (20141221201539)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.3ms)[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.1ms)[0m [1mCREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")[0m
+ [1m[35m (0.1ms)[0m SELECT sql
+ FROM sqlite_master
+ 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_tg_fp_mappings_on_extface_driver_id' AND type='index'
+
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141221201539"]]
+ [1m[36m (133.6ms)[0m [1mcommit transaction[0m
+Migrating to BillingOpFpMapping (20141221233912)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.3ms)[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.2ms)[0m CREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ 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_op_fp_mappings_on_extface_driver_id' AND type='index'
+[0m
+ [1m[35m (0.3ms)[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 (117.5ms)[0m commit transaction
+Migrating to CreateBillingResources (20141229234928)
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20141229234928_create_billing_resources.rb:10)
+ [1m[35m (0.8ms)[0m CREATE TABLE "billing_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "properties" text, "banned" boolean, "type" varchar, "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 (100.8ms)[0m commit transaction
+Migrating to AddPwdToBillingOperatorMapping (20150311013019)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_op_fp_mappings" ADD "pwd" varchar
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150311013019"]]
+ [1m[35m (79.3ms)[0m commit transaction
+Migrating to AddObjectChangesToBillingVersions (20150510142229)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_versions" ADD "object_changes" text
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150510142229"]]
+ [1m[35m (93.9ms)[0m commit transaction
+Migrating to AddMasterToBillingVersion (20150510235441)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_versions" ADD "master_id" integer
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_versions" ADD "master_type" varchar[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150510235441"]]
+ [1m[36m (94.9ms)[0m [1mcommit transaction[0m
+Migrating to AddDeletedAtToBillingReport (20150512040421)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_reports" ADD "deleted_at" datetime[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150512040421"]]
+ [1m[36m (103.1ms)[0m [1mcommit transaction[0m
+Migrating to AddPrintDeviceToBillingOrigin (20160723160908)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "billing_origins" ADD "print_device_id" integer[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160723160908"]]
+ [1m[36m (110.5ms)[0m [1mcommit transaction[0m
+Migrating to AddPrintJobToBillingBill (20160723234233)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "billing_bills" ADD "print_job_id" integer[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160723234233"]]
+ [1m[36m (111.3ms)[0m [1mcommit transaction[0m
+Migrating to AddPrintHeadersToBillingOrigin (20160824235224)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "billing_origins" ADD "print_header" varchar[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_origins" ADD "print_footer" varchar
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160824235224"]]
+ [1m[35m (102.3ms)[0m commit transaction
+Migrating to CreateBillingReceiptConfigs (20160828145106)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "billing_receipt_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "type" varchar, "name" varchar, "discount_text" varchar, "surcharge_text" varchar, "sound_signal" boolean, "open_cash_drawer" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160828145106"]]
+ [1m[35m (137.2ms)[0m commit transaction
+Migrating to AddReceiptConfigToBillingOrigin (20160828145448)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_origins" ADD "receipt_config_id" integer
+ [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.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 CREATE INDEX "index_billing_origins_on_receipt_config_id" ON "billing_origins" ("receipt_config_id")
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160828145448"]]
+ [1m[35m (132.8ms)[0m commit transaction
+Migrating to AddPaperCutToBillingReceiptConfig (20160831231640)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_receipt_configs" ADD "paper_cut" boolean
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160831231640"]]
+ [1m[35m (73.3ms)[0m commit transaction
+Migrating to AddCustomCommandsToBillingReceiptConfig (20170329013520)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_receipt_configs" ADD "custom_commands" boolean
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_receipt_configs" ADD "custom_commands_text" varchar[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170329013520"]]
+ [1m[36m (85.4ms)[0m [1mcommit transaction[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.8ms)[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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' 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.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.2ms)[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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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_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_op_fp_mappings_on_operator_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
+[0m
+ [1m[35m (0.2ms)[0m SELECT sql
+ FROM sqlite_master
+ 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_op_fp_mappings_on_extface_driver_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_receipt_config_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_origins_on_receipt_config_id' 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.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_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'
+ 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_tg_fp_mappings_on_tax_group_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
+
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ 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_tg_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[36m (137.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
+ [1m[35m (0.3ms)[0m select sqlite_version(*)
+ [1m[36m (72.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+Migrating to CreateBillingAccounts (20140717180443)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717180443_create_billing_accounts.rb:6)
+ [1m[35m (0.5ms)[0m CREATE TABLE "billing_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_accounts_on_billable_type_and_billable_id" ON "billing_accounts" ("billable_type", "billable_id")[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717180443"]]
+ [1m[36m (79.4ms)[0m [1mcommit transaction[0m
+Migrating to CreateBillingCharges (20140717181134)
+ [1m[35m (0.1ms)[0m begin transaction
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717181134_create_billing_charges.rb:8)
+ [1m[36m (0.3ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar 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.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 CREATE INDEX "index_billing_charges_on_chargable_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717181134"]]
+ [1m[35m (101.7ms)[0m commit transaction
+Migrating to CreateBillingDiscounts (20140717181406)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717181406_create_billing_discounts.rb:8)
+ [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.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717181406"]]
+ [1m[36m (103.0ms)[0m [1mcommit transaction[0m
+Migrating to CreateBillingPayments (20140717183129)
+ [1m[35m (0.1ms)[0m begin transaction
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717183129_create_billing_payments.rb:7)
+ [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 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 (228.7ms)[0m commit transaction
+Migrating to CreateBillingOrigins (20140717202527)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140717202527_create_billing_origins.rb:6)
+ [1m[35m (0.3ms)[0m CREATE TABLE "billing_origins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140717202527"]]
+ [1m[35m (71.3ms)[0m commit transaction
+Migrating to CreateProfiles (20140718104656)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/test/dummy/db/migrate/20140718104656_create_profiles.rb:5)
+ [1m[35m (0.4ms)[0m CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718104656"]]
+ [1m[35m (70.6ms)[0m commit transaction
+Migrating to AddSumariesToBillingAccount (20140718164841)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_accounts" ADD "charges_sum_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_accounts" ADD "charges_sum_currency" varchar DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "billing_accounts" ADD "discounts_sum_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_accounts" ADD "discounts_sum_currency" varchar DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "billing_accounts" ADD "payments_sum_cents" integer DEFAULT 0 NOT NULL
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_accounts" ADD "payments_sum_currency" varchar 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.3ms)[0m [1mALTER TABLE "billing_accounts" ADD "total_currency" varchar 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.3ms)[0m [1mALTER TABLE "billing_accounts" ADD "balance_currency" varchar DEFAULT 'USD' NOT NULL[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140718164841"]]
+ [1m[36m (62.6ms)[0m [1mcommit transaction[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 DEFAULT 'USD' NOT NULL
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140718210349"]]
+ [1m[35m (54.0ms)[0m commit transaction
+Migrating to CreateBillingPaymentTypes (20140718212116)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140718212116_create_billing_payment_types.rb:8)
+ [1m[35m (0.4ms)[0m CREATE TABLE "billing_payment_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "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 (80.1ms)[0m commit transaction
+Migrating to CreateBillingTaxGroups (20140719094023)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140719094023_create_billing_tax_groups.rb:6)
+ [1m[35m (0.5ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094023"]]
+ [1m[35m (86.7ms)[0m commit transaction
+Migrating to CreateBillingPlus (20140719094033)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140719094033_create_billing_plus.rb:6)
+ [1m[35m (0.6ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094033"]]
+ [1m[35m (86.6ms)[0m commit transaction
+Migrating to CreateBillingProfiles (20140719094418)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140719094418_create_billing_profiles.rb:6)
+ [1m[35m (0.5ms)[0m CREATE TABLE "billing_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719094418"]]
+ [1m[35m (94.3ms)[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 [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_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.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_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 (91.9ms)[0m [1mcommit transaction[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.4ms)[0m ALTER TABLE "billing_accounts" ADD "surcharges_sum_currency" varchar DEFAULT 'USD' NOT NULL
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140719110412"]]
+ [1m[35m (79.1ms)[0m commit transaction
+Migrating to AddTypeToBillingPayment (20140720110811)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_payments" ADD "type" varchar
+ [1m[36m (0.3ms)[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 (64.2ms)[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[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140720132559"]]
+ [1m[36m (71.1ms)[0m [1mcommit transaction[0m
+Migrating to CreateBillingOperators (20140721172932)
+ [1m[35m (0.1ms)[0m begin transaction
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140721172932_create_billing_operators.rb:8)
+ [1m[36m (0.4ms)[0m [1mCREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "type" varchar, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140721172932"]]
+ [1m[36m (62.4ms)[0m [1mcommit transaction[0m
+Migrating to CreateBillingDepartments (20140721173106)
+ [1m[35m (0.1ms)[0m begin transaction
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20140721173106_create_billing_departments.rb:9)
+ [1m[36m (0.3ms)[0m [1mCREATE TABLE "billing_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "tax_group_id" integer, "type" varchar, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140721173106"]]
+ [1m[36m (93.9ms)[0m [1mcommit transaction[0m
+Migrating to ChangeTableBaseBillingTaxGroup (20140722160242)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "master_id" integer[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "billing_tax_groups" ADD "number" integer
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "percent_ratio" decimal(6,3)[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "billing_tax_groups" ADD "banned" boolean
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_tax_groups" ADD "type" varchar[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "billing_tax_groups" ADD "deleted_at" datetime
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160242"]]
+ [1m[35m (61.8ms)[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 [1mALTER TABLE "billing_operators" ADD "banned" boolean[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_operators" ADD "deleted_at" datetime
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160258"]]
+ [1m[35m (60.6ms)[0m commit transaction
+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.3ms)[0m [1mALTER TABLE "billing_payment_types" ADD "number" integer[0m
+ [1m[35m (0.2ms)[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 (61.8ms)[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.3ms)[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.2ms)[0m CREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722160902"]]
+ [1m[35m (78.0ms)[0m commit transaction
+Migrating to ChangeTableBaseBillingPlus (20140722161743)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_plus" ADD "master_id" integer
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_plus" ADD "tax_group_id" integer[0m
+ [1m[35m (0.3ms)[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.3ms)[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 DEFAULT 'USD' NOT NULL
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_plus" ADD "code" varchar[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_plus" ADD "type" varchar
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_plus" ADD "banned" boolean[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_plus" ADD "deleted_at" datetime
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722161743"]]
+ [1m[35m (87.3ms)[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.2ms)[0m [1mALTER TABLE "billing_origins" ADD "fiscal_device_id" integer[0m
+ [1m[35m (0.2ms)[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.2ms)[0m ALTER TABLE "billing_origins" ADD "type" varchar
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "billing_origins" ADD "payment_model" varchar DEFAULT 'Billing::PaymentWithType'[0m
+ [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140722162315"]]
+ [1m[35m (85.1ms)[0m commit transaction
+Migrating to AddOriginToBillingAccount (20140724173527)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_accounts" ADD "origin_id" integer
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' 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 (85.7ms)[0m commit transaction
+Migrating to RemoveOriginAndFiscalDeficeFromBillingPayment (20140724173917)
+ [1m[36m (0.2ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "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.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.4ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "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.2ms)[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.2ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "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.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.2ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer) [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.2ms)[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[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140724173917"]]
+ [1m[36m (94.8ms)[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[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140725122914"]]
+ [1m[36m (62.3ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingCharge (20140725142525)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_charges" ADD "name" varchar[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_charges" ADD "description" varchar
+ [1m[36m (0.3ms)[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.3ms)[0m [1mALTER TABLE "billing_charges" ADD "value_currency" varchar DEFAULT 'USD' NOT NULL[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_charges" ADD "deleted_at" datetime
+ [1m[36m (0.3ms)[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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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 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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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.3ms)[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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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.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 (96.3ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingDepartment (20140725143734)
+ [1m[35m (0.2ms)[0m begin transaction
+ [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.7ms)[0m CREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725143734"]]
+ [1m[35m (100.6ms)[0m commit transaction
+Migrating to EqalizeSchemasBillingClosure (20140725145640)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[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 DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar DEFAULT 'USD' NOT NULL, "note" text, "type" varchar, "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar)
+ [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 (108.7ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingOperators (20140725145953)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.4ms)[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.8ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingOrigin (20140725150329)
+ [1m[35m (0.1ms)[0m begin transaction
+ [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.4ms)[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 (94.8ms)[0m commit transaction
+Migrating to EqalizeSchemasBillingPaymentType (20140725151522)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_payment_types" ADD "print_copy" boolean
+ [1m[36m (0.3ms)[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 (96.2ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingPayment (20140725152125)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "billing_payments" ADD "name" varchar[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_payments" ADD "description" varchar
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_payments" ADD "external_token" varchar[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_payments" ADD "note" varchar
+ [1m[36m (0.4ms)[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.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.3ms)[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.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.3ms)[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 (84.4ms)[0m [1mcommit transaction[0m
+Migrating to EqalizeSchemasBillingVersion (20140725153215)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.4ms)[0m [1mCREATE TABLE "billing_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text, "created_at" datetime, "ip" varchar, "user_agent" varchar) [0m
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725153215"]]
+ [1m[35m (86.2ms)[0m commit transaction
+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.2ms)[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
+ 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 (94.8ms)[0m [1mcommit transaction[0m
+Migrating to AddExtfaceJobToBillingAccount (20140725164847)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "billing_accounts" ADD "extface_job_id" integer[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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.4ms)[0m CREATE INDEX "index_billing_accounts_on_extface_job_id" ON "billing_accounts" ("extface_job_id")
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140725164847"]]
+ [1m[35m (91.5ms)[0m commit transaction
+Migrating to RenameClosureToBillingReport (20140726163220)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[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 [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
+ 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_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 [1mDROP INDEX "index_billing_closures_on_origin_id"[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140726163220"]]
+ [1m[36m (93.0ms)[0m [1mcommit transaction[0m
+Migrating to RemoveClosureFromBillingAccount (20140726165718)
+ [1m[35m (0.1ms)[0m begin transaction
+ [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.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.3ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "closure_id" integer, "deleted_at" datetime) [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.2ms)[0m CREATE INDEX "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")
+ [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.4ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "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.2ms)[0m [1mCREATE INDEX "index_billing_payments_on_account_id" ON "billing_payments" ("account_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.2ms)[0m [1mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
+ [1m[35m (0.2ms)[0m SELECT * FROM "abilling_payments"
+ [1m[36m (0.2ms)[0m [1mDROP TABLE "abilling_payments"[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140726165718"]]
+ [1m[36m (90.0ms)[0m [1mcommit transaction[0m
+Migrating to AddReportToBillingAccount (20140726170002)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_accounts" ADD "report_id" integer[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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.3ms)[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 (86.3ms)[0m [1mcommit transaction[0m
+Migrating to AddAutofinAndFinalizedAtToBillingAccount (20140728110230)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_accounts" ADD "autofin" boolean DEFAULT 't'[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_accounts" ADD "finalized_at" datetime
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140728110230"]]
+ [1m[35m (77.7ms)[0m commit transaction
+Migrating to AddNameToBillingAccount (20140729083050)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_accounts" ADD "name" varchar
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729083050"]]
+ [1m[35m (70.0ms)[0m commit transaction
+Migrating to AddNumberToBillingAccount (20140729083408)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_accounts" ADD "number" varchar
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729083408"]]
+ [1m[35m (70.7ms)[0m commit transaction
+Migrating to AddDeletedAtToBillingModifier (20140729180849)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_modifiers" ADD "deleted_at" datetime
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729180849"]]
+ [1m[35m (70.5ms)[0m commit transaction
+Migrating to AddDeletedAtToBillingAccount (20140729182146)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_accounts" ADD "deleted_at" datetime
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140729182146"]]
+ [1m[35m (78.2ms)[0m commit transaction
+Migrating to RenameBillingAccountToBill (20140803073707)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' 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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' 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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")[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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.2ms)[0m [1mDROP INDEX "index_billing_accounts_on_report_id"[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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.2ms)[0m CREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")
+ [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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.2ms)[0m DROP INDEX "index_billing_accounts_on_extface_job_id"
+ [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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")[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_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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (0.2ms)[0m [1mDROP INDEX "index_billing_accounts_on_origin_id"[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.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.2ms)[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_accounts_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' 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.2ms)[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_accounts_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.3ms)[0m CREATE INDEX "index_billing_bills_on_billable_type_and_billable_id" ON "billing_bills" ("billable_type", "billable_id")
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' 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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_accounts_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (0.2ms)[0m DROP INDEX "index_billing_accounts_on_billable_type_and_billable_id"
+ [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime) [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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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_revenue_at" ON "abilling_charges" ("revenue_at")[0m
+ [1m[35m (0.2ms)[0m CREATE INDEX "tindex_abilling_charges_on_deleted_at" ON "abilling_charges" ("deleted_at")
+ [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_origin_id" ON "abilling_charges" ("origin_id")[0m
+ [1m[35m (0.1ms)[0m CREATE INDEX "tindex_abilling_charges_on_chargable_type_and_chargable_id" ON "abilling_charges" ("chargable_type", "chargable_id")
+ [1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_abilling_charges_on_account_id" ON "abilling_charges" ("bill_id")[0m
+ [1m[35m (0.1ms)[0m SELECT * FROM "billing_charges"
+ [1m[36m (0.3ms)[0m [1mDROP TABLE "billing_charges"[0m
+ [1m[35m (0.2ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='tindex_abilling_charges_on_chargable_type_and_chargable_id' 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.2ms)[0m CREATE INDEX "index_billing_charges_on_account_id" ON "billing_charges" ("bill_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_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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 "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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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 "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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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.2ms)[0m CREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")
+ [1m[36m (0.1ms)[0m [1mSELECT * FROM "abilling_charges"[0m
+ [1m[35m (0.2ms)[0m DROP TABLE "abilling_charges"
+ [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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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 CREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")
+ [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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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 [1mDROP INDEX "index_billing_charges_on_account_id"[0m
+ [1m[35m (0.3ms)[0m CREATE 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 DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
+ [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 CREATE INDEX "tindex_abilling_modifiers_on_account_id" ON "abilling_modifiers" ("bill_id")
+ [1m[36m (0.2ms)[0m [1mSELECT * FROM "billing_modifiers"[0m
+ [1m[35m (0.2ms)[0m DROP TABLE "billing_modifiers"
+ [1m[36m (0.2ms)[0m [1mCREATE 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 DEFAULT 'USD' NOT NULL, "deleted_at" datetime) [0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_billing_modifiers_on_account_id" ON "billing_modifiers" ("bill_id")[0m
+ [1m[35m (0.1ms)[0m SELECT * FROM "abilling_modifiers"
+ [1m[36m (0.1ms)[0m [1mDROP TABLE "abilling_modifiers"[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 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 "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")[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_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 DROP INDEX "index_billing_modifiers_on_account_id"
+ [1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "abilling_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "deleted_at" datetime) [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 "tindex_abilling_payments_on_deleted_at" ON "abilling_payments" ("deleted_at")
+ [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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "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.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'
+ 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 (79.7ms)[0m commit transaction
+Migrating to AddQtyToBillingCharge (20140804065726)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_charges" ADD "qty" decimal(6,3)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140804065726"]]
+ [1m[35m (70.6ms)[0m commit transaction
+Migrating to AddTaxRatioToBillingCharge (20140804070517)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.8ms)[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 (77.2ms)[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.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.3ms)[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 (93.2ms)[0m [1mcommit transaction[0m
+Migrating to AddFAmountToBillingReport (20141027235427)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "billing_reports" ADD "f_amount_cents" integer DEFAULT 0 NOT NULL[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_reports" ADD "f_amount_currency" varchar DEFAULT 'USD' NOT NULL
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141027235427"]]
+ [1m[35m (60.3ms)[0m commit transaction
+Migrating to BillingTgFpMapping (20141221201539)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.3ms)[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.2ms)[0m [1mCREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")[0m
+ [1m[35m (0.1ms)[0m SELECT sql
+ FROM sqlite_master
+ 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_tg_fp_mappings_on_extface_driver_id' AND type='index'
+
+ [1m[36m (0.3ms)[0m [1mCREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141221201539"]]
+ [1m[36m (102.4ms)[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.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ 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_op_fp_mappings_on_extface_driver_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 (110.7ms)[0m commit transaction
+Migrating to CreateBillingResources (20141229234928)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/alex/AptanaWorkspace/billing/db/migrate/20141229234928_create_billing_resources.rb:10)
+ [1m[35m (0.5ms)[0m CREATE TABLE "billing_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "properties" text, "banned" boolean, "type" varchar, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141229234928"]]
+ [1m[35m (86.6ms)[0m commit transaction
+Migrating to AddPwdToBillingOperatorMapping (20150311013019)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "billing_op_fp_mappings" ADD "pwd" varchar
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150311013019"]]
+ [1m[35m (65.6ms)[0m commit transaction
+Migrating to AddObjectChangesToBillingVersions (20150510142229)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_versions" ADD "object_changes" text
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150510142229"]]
+ [1m[35m (70.1ms)[0m commit transaction
+Migrating to AddMasterToBillingVersion (20150510235441)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "billing_versions" ADD "master_id" integer
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "billing_versions" ADD "master_type" varchar[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150510235441"]]
+ [1m[36m (69.4ms)[0m [1mcommit transaction[0m
+Migrating to AddDeletedAtToBillingReport (20150512040421)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_reports" ADD "deleted_at" datetime[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150512040421"]]
+ [1m[36m (60.9ms)[0m [1mcommit transaction[0m
+Migrating to AddPrintDeviceToBillingOrigin (20160723160908)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "billing_origins" ADD "print_device_id" integer[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160723160908"]]
+ [1m[36m (72.2ms)[0m [1mcommit transaction[0m
+Migrating to AddPrintJobToBillingBill (20160723234233)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "billing_bills" ADD "print_job_id" integer[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160723234233"]]
+ [1m[36m (61.7ms)[0m [1mcommit transaction[0m
+Migrating to AddPrintHeadersToBillingOrigin (20160824235224)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "billing_origins" ADD "print_header" varchar[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "billing_origins" ADD "print_footer" varchar
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160824235224"]]
+ [1m[35m (78.5ms)[0m commit transaction
+Migrating to CreateBillingReceiptConfigs (20160828145106)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[0m CREATE TABLE "billing_receipt_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "type" varchar, "name" varchar, "discount_text" varchar, "surcharge_text" varchar, "sound_signal" boolean, "open_cash_drawer" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160828145106"]]
+ [1m[35m (76.5ms)[0m commit transaction
+Migrating to AddReceiptConfigToBillingOrigin (20160828145448)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_origins" ADD "receipt_config_id" integer
+ [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.2ms)[0m CREATE INDEX "index_billing_origins_on_receipt_config_id" ON "billing_origins" ("receipt_config_id")
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160828145448"]]
+ [1m[35m (94.9ms)[0m commit transaction
+Migrating to AddPaperCutToBillingReceiptConfig (20160831231640)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "billing_receipt_configs" ADD "paper_cut" boolean
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160831231640"]]
+ [1m[35m (63.3ms)[0m commit transaction
+Migrating to AddCustomCommandsToBillingReceiptConfig (20170329013520)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "billing_receipt_configs" ADD "custom_commands" boolean
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "billing_receipt_configs" ADD "custom_commands_text" varchar[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170329013520"]]
+ [1m[36m (69.9ms)[0m [1mcommit transaction[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.5ms)[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_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' 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.2ms)[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_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.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_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' 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_op_fp_mappings_on_operator_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
+[0m
+ [1m[35m (0.1ms)[0m SELECT sql
+ FROM sqlite_master
+ 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_op_fp_mappings_on_extface_driver_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_receipt_config_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_origins_on_receipt_config_id' 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'
+ 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.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_tg_fp_mappings_on_tax_group_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
+
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ 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_tg_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[36m (83.4ms)[0m [1mCREATE TABLE "billing_bills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar DEFAULT 'USD' NOT NULL, "balance_cents" integer DEFAULT 0 NOT NULL, "balance_currency" varchar DEFAULT 'USD' NOT NULL, "surcharges_sum_cents" integer DEFAULT 0 NOT NULL, "surcharges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "origin_id" integer, "extface_job_id" integer, "report_id" integer, "autofin" boolean DEFAULT 't', "finalized_at" datetime, "name" varchar, "number" varchar, "deleted_at" datetime, "print_job_id" integer) [0m
+ [1m[35m (0.2ms)[0m select sqlite_version(*)
+ [1m[36m (65.4ms)[0m [1mCREATE INDEX "index_billing_bills_on_billable_type_and_billable_id" ON "billing_bills" ("billable_type", "billable_id")[0m
+ [1m[35m (0.3ms)[0m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (66.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
+ 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_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (57.0ms)[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_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (56.3ms)[0m CREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")
+ [1m[36m (64.3ms)[0m [1mCREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime, "qty" decimal(6,3), "tax_ratio" decimal(6,3)) [0m
+ [1m[35m (83.0ms)[0m CREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")
+ [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 (179.9ms)[0m CREATE INDEX "index_billing_charges_on_chargable_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")
+ [1m[36m (0.2ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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 (79.5ms)[0m [1mCREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")[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_chargable_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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 (71.7ms)[0m [1mCREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")[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_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_chargable_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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 (63.3ms)[0m CREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")
+ [1m[36m (65.1ms)[0m [1mCREATE TABLE "billing_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "tax_group_id" integer, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime) [0m
+ [1m[35m (73.6ms)[0m CREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")
+ [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 (73.2ms)[0m CREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")
+ [1m[36m (83.0ms)[0m [1mCREATE 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 DEFAULT 'USD' NOT NULL, "deleted_at" datetime) [0m
+ [1m[35m (73.3ms)[0m CREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")
+ [1m[36m (81.8ms)[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, "pwd" varchar) [0m
+ [1m[35m (73.7ms)[0m CREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")
+ [1m[36m (0.3ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ 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_op_fp_mappings_on_extface_driver_id' AND type='index'
+[0m
+ [1m[35m (79.9ms)[0m CREATE INDEX "index_billing_op_fp_mappings_on_operator_id" ON "billing_op_fp_mappings" ("operator_id")
+ [1m[36m (74.1ms)[0m [1mCREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime) [0m
+ [1m[35m (74.2ms)[0m CREATE INDEX "index_billing_operators_on_deleted_at" ON "billing_operators" ("deleted_at")
+ [1m[36m (65.0ms)[0m [1mCREATE TABLE "billing_origins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "fiscal_device_id" integer, "banned" boolean, "deleted_at" datetime, "type" varchar, "payment_model" varchar DEFAULT 'Billing::PaymentWithType', "transfer_device_id" integer, "print_device_id" integer, "print_header" varchar, "print_footer" varchar, "receipt_config_id" integer) [0m
+ [1m[35m (74.1ms)[0m CREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")
+ [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 (72.9ms)[0m CREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")
+ [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_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 (72.8ms)[0m [1mCREATE INDEX "index_billing_origins_on_receipt_config_id" ON "billing_origins" ("receipt_config_id")[0m
+ [1m[35m (0.1ms)[0m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_origins_on_receipt_config_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_origins_on_receipt_config_id' 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_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 (80.7ms)[0m [1mCREATE INDEX "index_billing_origins_on_transfer_device_id" ON "billing_origins" ("transfer_device_id")[0m
+ [1m[35m (74.8ms)[0m CREATE TABLE "billing_payment_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "cash" boolean, "fiscal" boolean, "created_at" datetime, "updated_at" datetime, "type" varchar, "master_id" integer, "number" integer, "banned" boolean, "deleted_at" datetime, "print_copy" boolean)
+ [1m[36m (81.4ms)[0m [1mCREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")[0m
+ [1m[35m (90.5ms)[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 DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "deleted_at" datetime)
+ [1m[36m (89.9ms)[0m [1mCREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")[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 (81.2ms)[0m [1mCREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")[0m
+ [1m[35m (64.8ms)[0m CREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "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 DEFAULT 'USD' NOT NULL, "code" varchar, "type" varchar, "banned" boolean, "deleted_at" datetime)
+ [1m[36m (73.7ms)[0m [1mCREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")[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 (72.9ms)[0m [1mCREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")[0m
+ [1m[35m (73.4ms)[0m CREATE TABLE "billing_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (98.5ms)[0m [1mCREATE 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) [0m
+ [1m[35m (73.8ms)[0m CREATE INDEX "index_billing_pt_fp_mappings_on_extface_driver_id" ON "billing_pt_fp_mappings" ("extface_driver_id")
+ [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 (64.2ms)[0m CREATE INDEX "index_billing_pt_fp_mappings_on_payment_type_id" ON "billing_pt_fp_mappings" ("payment_type_id")
+ [1m[36m (75.0ms)[0m [1mCREATE TABLE "billing_receipt_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "type" varchar, "name" varchar, "discount_text" varchar, "surcharge_text" varchar, "sound_signal" boolean, "open_cash_drawer" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "paper_cut" boolean, "custom_commands" boolean, "custom_commands_text" varchar) [0m
+ [1m[35m (72.6ms)[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 DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar DEFAULT 'USD' NOT NULL, "note" text, "type" varchar, "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar, "f_amount_cents" integer DEFAULT 0 NOT NULL, "f_amount_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
+ [1m[36m (65.6ms)[0m [1mCREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")[0m
+ [1m[35m (72.9ms)[0m CREATE TABLE "billing_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "properties" text, "banned" boolean, "type" varchar, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime)
+ [1m[36m (73.4ms)[0m [1mCREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar, "deleted_at" datetime) [0m
+ [1m[35m (81.4ms)[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 (82.2ms)[0m [1mCREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")[0m
+ [1m[35m (0.1ms)[0m SELECT sql
+ FROM sqlite_master
+ 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_tg_fp_mappings_on_extface_driver_id' AND type='index'
+
+ [1m[36m (65.1ms)[0m [1mCREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")[0m
+ [1m[35m (73.5ms)[0m CREATE TABLE "billing_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text, "created_at" datetime, "ip" varchar, "user_agent" varchar, "object_changes" text, "master_id" integer, "master_type" varchar)
+ [1m[36m (73.3ms)[0m [1mCREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")[0m
+ [1m[35m (65.7ms)[0m CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (80.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
+ [1m[35m (82.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (54.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170329013520')
+ [1m[36m (57.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140718104656')[0m
+ [1m[35m (57.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140722160242')
+ [1m[36m (57.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140718164841')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140718212116')
+ [1m[36m (57.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140722160258')[0m
+ [1m[35m (56.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140722161743')
+ [1m[36m (58.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725142525')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725151522')
+ [1m[36m (49.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140726163220')[0m
+ [1m[35m (49.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725164847')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160828145448')[0m
+ [1m[35m (48.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001185321')
+ [1m[36m (49.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140729180849')[0m
+ [1m[35m (49.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140722160529')
+ [1m[36m (48.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140719110412')[0m
+ [1m[35m (49.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140717181406')
+ [1m[36m (48.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140729083050')[0m
+ [1m[35m (58.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141229234928')
+ [1m[36m (57.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140719094023')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160723160908')
+ [1m[36m (82.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140724173917')[0m
+ [1m[35m (72.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140717202527')
+ [1m[36m (57.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140721172932')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140719103621')
+ [1m[36m (57.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140804070517')[0m
+ [1m[35m (56.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140717180443')
+ [1m[36m (49.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140726170002')[0m
+ [1m[35m (56.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140724173527')
+ [1m[36m (49.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160824235224')[0m
+ [1m[35m (255.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140720132559')
+ [1m[36m (49.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725152125')[0m
+ [1m[35m (48.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141221233912')
+ [1m[36m (49.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140722162315')[0m
+ [1m[35m (49.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150311013019')
+ [1m[36m (57.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140729083408')[0m
+ [1m[35m (106.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140719094033')
+ [1m[36m (49.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140721173106')[0m
+ [1m[35m (65.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725145953')
+ [1m[36m (49.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140803073707')[0m
+ [1m[35m (57.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140717181134')
+ [1m[36m (57.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140729182146')[0m
+ [1m[35m (57.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725143734')
+ [1m[36m (57.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150512040421')[0m
+ [1m[35m (57.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140722160902')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140720110811')[0m
+ [1m[35m (49.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160828145106')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725145640')[0m
+ [1m[35m (49.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725153658')
+ [1m[36m (49.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140804065726')[0m
+ [1m[35m (49.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725150329')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140726165718')[0m
+ [1m[35m (49.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140719094418')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150510142229')[0m
+ [1m[35m (49.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160723234233')
+ [1m[36m (48.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725153215')[0m
+ [1m[35m (49.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140717183129')
+ [1m[36m (49.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725122914')[0m
+ [1m[35m (49.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140718210349')
+ [1m[36m (49.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150510235441')[0m
+ [1m[35m (49.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140728110230')
+ [1m[36m (57.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160831231640')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141027235427')
+ [1m[36m (57.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141221201539')[0m
+ [1m[35m (60.4ms)[0m CREATE TABLE "billing_bills" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "billable_id" integer, "billable_type" varchar, "created_at" datetime, "updated_at" datetime, "charges_sum_cents" integer DEFAULT 0 NOT NULL, "charges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "discounts_sum_cents" integer DEFAULT 0 NOT NULL, "discounts_sum_currency" varchar DEFAULT 'USD' NOT NULL, "payments_sum_cents" integer DEFAULT 0 NOT NULL, "payments_sum_currency" varchar DEFAULT 'USD' NOT NULL, "total_cents" integer DEFAULT 0 NOT NULL, "total_currency" varchar DEFAULT 'USD' NOT NULL, "balance_cents" integer DEFAULT 0 NOT NULL, "balance_currency" varchar DEFAULT 'USD' NOT NULL, "surcharges_sum_cents" integer DEFAULT 0 NOT NULL, "surcharges_sum_currency" varchar DEFAULT 'USD' NOT NULL, "origin_id" integer, "extface_job_id" integer, "report_id" integer, "autofin" boolean DEFAULT 't', "finalized_at" datetime, "name" varchar, "number" varchar, "deleted_at" datetime, "print_job_id" integer)
+ [1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (64.9ms)[0m CREATE INDEX "index_billing_bills_on_billable_type_and_billable_id" ON "billing_bills" ("billable_type", "billable_id")
+ [1m[36m (0.3ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+[0m
+ [1m[35m (58.3ms)[0m CREATE INDEX "index_billing_bills_on_extface_job_id" ON "billing_bills" ("extface_job_id")
+ [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.2ms)[0m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (72.4ms)[0m [1mCREATE INDEX "index_billing_bills_on_origin_id" ON "billing_bills" ("origin_id")[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_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_id' AND type='index'
+
+ [1m[36m (64.2ms)[0m [1mCREATE INDEX "index_billing_bills_on_report_id" ON "billing_bills" ("report_id")[0m
+ [1m[35m (73.2ms)[0m CREATE TABLE "billing_charges" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "chargable_id" integer, "chargable_type" varchar, "price_cents" integer DEFAULT 0 NOT NULL, "price_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "name" varchar, "description" varchar, "origin_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime, "revenue_at" datetime, "qty" decimal(6,3), "tax_ratio" decimal(6,3))
+ [1m[36m (65.3ms)[0m [1mCREATE INDEX "index_billing_charges_on_bill_id" ON "billing_charges" ("bill_id")[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 (73.3ms)[0m [1mCREATE INDEX "index_billing_charges_on_chargable_type_and_chargable_id" ON "billing_charges" ("chargable_type", "chargable_id")[0m
+ [1m[35m (0.2ms)[0m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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 (55.8ms)[0m CREATE INDEX "index_billing_charges_on_deleted_at" ON "billing_charges" ("deleted_at")
+ [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_chargable_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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 (63.7ms)[0m CREATE INDEX "index_billing_charges_on_origin_id" ON "billing_charges" ("origin_id")
+ [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_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_chargable_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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 (64.0ms)[0m [1mCREATE INDEX "index_billing_charges_on_revenue_at" ON "billing_charges" ("revenue_at")[0m
+ [1m[35m (65.2ms)[0m CREATE TABLE "billing_departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "tax_group_id" integer, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)
+ [1m[36m (57.3ms)[0m [1mCREATE INDEX "index_billing_departments_on_deleted_at" ON "billing_departments" ("deleted_at")[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 (77.7ms)[0m [1mCREATE INDEX "index_billing_departments_on_tax_group_id" ON "billing_departments" ("tax_group_id")[0m
+ [1m[35m (85.4ms)[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 DEFAULT 'USD' NOT NULL, "deleted_at" datetime)
+ [1m[36m (82.5ms)[0m [1mCREATE INDEX "index_billing_modifiers_on_bill_id" ON "billing_modifiers" ("bill_id")[0m
+ [1m[35m (73.6ms)[0m CREATE 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, "pwd" varchar)
+ [1m[36m (81.9ms)[0m [1mCREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")[0m
+ [1m[35m (0.2ms)[0m SELECT sql
+ FROM sqlite_master
+ 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_op_fp_mappings_on_extface_driver_id' AND type='index'
+
+ [1m[36m (81.1ms)[0m [1mCREATE INDEX "index_billing_op_fp_mappings_on_operator_id" ON "billing_op_fp_mappings" ("operator_id")[0m
+ [1m[35m (81.5ms)[0m CREATE TABLE "billing_operators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "type" varchar, "created_at" datetime, "updated_at" datetime, "number" integer, "banned" boolean, "deleted_at" datetime)
+ [1m[36m (82.3ms)[0m [1mCREATE INDEX "index_billing_operators_on_deleted_at" ON "billing_operators" ("deleted_at")[0m
+ [1m[35m (73.3ms)[0m CREATE TABLE "billing_origins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "fiscal_device_id" integer, "banned" boolean, "deleted_at" datetime, "type" varchar, "payment_model" varchar DEFAULT 'Billing::PaymentWithType', "transfer_device_id" integer, "print_device_id" integer, "print_header" varchar, "print_footer" varchar, "receipt_config_id" integer)
+ [1m[36m (65.4ms)[0m [1mCREATE INDEX "index_billing_origins_on_deleted_at" ON "billing_origins" ("deleted_at")[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 (73.5ms)[0m [1mCREATE INDEX "index_billing_origins_on_fiscal_device_id" ON "billing_origins" ("fiscal_device_id")[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_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 (64.5ms)[0m CREATE INDEX "index_billing_origins_on_receipt_config_id" ON "billing_origins" ("receipt_config_id")
+ [1m[36m (0.2ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ WHERE name='index_billing_origins_on_receipt_config_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_origins_on_receipt_config_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.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 (80.4ms)[0m CREATE INDEX "index_billing_origins_on_transfer_device_id" ON "billing_origins" ("transfer_device_id")
+ [1m[36m (73.5ms)[0m [1mCREATE TABLE "billing_payment_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "cash" boolean, "fiscal" boolean, "created_at" datetime, "updated_at" datetime, "type" varchar, "master_id" integer, "number" integer, "banned" boolean, "deleted_at" datetime, "print_copy" boolean) [0m
+ [1m[35m (73.4ms)[0m CREATE INDEX "index_billing_payment_types_on_deleted_at" ON "billing_payment_types" ("deleted_at")
+ [1m[36m (74.5ms)[0m [1mCREATE TABLE "billing_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bill_id" integer, "value_cents" integer DEFAULT 0 NOT NULL, "value_currency" varchar DEFAULT 'USD' NOT NULL, "created_at" datetime, "updated_at" datetime, "type" varchar, "payment_type_id" integer, "status" varchar, "name" varchar, "description" varchar, "external_token" varchar, "note" varchar, "deleted_at" datetime) [0m
+ [1m[35m (81.5ms)[0m CREATE INDEX "index_billing_payments_on_bill_id" ON "billing_payments" ("bill_id")
+ [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 (89.4ms)[0m CREATE INDEX "index_billing_payments_on_deleted_at" ON "billing_payments" ("deleted_at")
+ [1m[36m (81.1ms)[0m [1mCREATE TABLE "billing_plus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "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 DEFAULT 'USD' NOT NULL, "code" varchar, "type" varchar, "banned" boolean, "deleted_at" datetime) [0m
+ [1m[35m (73.5ms)[0m CREATE INDEX "index_billing_plus_on_department_id" ON "billing_plus" ("department_id")
+ [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 (65.0ms)[0m CREATE INDEX "index_billing_plus_on_tax_group_id" ON "billing_plus" ("tax_group_id")
+ [1m[36m (73.9ms)[0m [1mCREATE TABLE "billing_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (65.2ms)[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 (57.0ms)[0m [1mCREATE INDEX "index_billing_pt_fp_mappings_on_extface_driver_id" ON "billing_pt_fp_mappings" ("extface_driver_id")[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 (64.6ms)[0m [1mCREATE INDEX "index_billing_pt_fp_mappings_on_payment_type_id" ON "billing_pt_fp_mappings" ("payment_type_id")[0m
+ [1m[35m (73.4ms)[0m CREATE TABLE "billing_receipt_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "type" varchar, "name" varchar, "discount_text" varchar, "surcharge_text" varchar, "sound_signal" boolean, "open_cash_drawer" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "paper_cut" boolean, "custom_commands" boolean, "custom_commands_text" varchar)
+ [1m[36m (81.0ms)[0m [1mCREATE 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 DEFAULT 'USD' NOT NULL, "payments_cash_cents" integer DEFAULT 0 NOT NULL, "payments_cash_currency" varchar DEFAULT 'USD' NOT NULL, "payments_fiscal_cents" integer DEFAULT 0 NOT NULL, "payments_fiscal_currency" varchar DEFAULT 'USD' NOT NULL, "note" text, "type" varchar, "created_at" datetime, "updated_at" datetime, "extface_job_id" integer, "f_period_from" date, "f_period_to" date, "zeroing" boolean, "f_operation" varchar, "f_amount_cents" integer DEFAULT 0 NOT NULL, "f_amount_currency" varchar DEFAULT 'USD' NOT NULL, "deleted_at" datetime) [0m
+ [1m[35m (65.6ms)[0m CREATE INDEX "index_billing_reports_on_origin_id" ON "billing_reports" ("origin_id")
+ [1m[36m (75.1ms)[0m [1mCREATE TABLE "billing_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar, "properties" text, "banned" boolean, "type" varchar, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime) [0m
+ [1m[35m (114.7ms)[0m CREATE TABLE "billing_tax_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime, "master_id" integer, "number" integer, "percent_ratio" decimal(6,3), "banned" boolean, "type" varchar, "deleted_at" datetime)
+ [1m[36m (89.2ms)[0m [1mCREATE 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) [0m
+ [1m[35m (90.2ms)[0m CREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")
+ [1m[36m (0.3ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ 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_tg_fp_mappings_on_extface_driver_id' AND type='index'
+[0m
+ [1m[35m (72.1ms)[0m CREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")
+ [1m[36m (65.0ms)[0m [1mCREATE TABLE "billing_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text, "created_at" datetime, "ip" varchar, "user_agent" varchar, "object_changes" text, "master_id" integer, "master_type" varchar) [0m
+ [1m[35m (73.7ms)[0m CREATE INDEX "index_billing_versions_on_item_type_and_item_id" ON "billing_versions" ("item_type", "item_id")
+ [1m[36m (73.7ms)[0m [1mCREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (73.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
+ [1m[36m (65.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (49.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20170329013520')[0m
+ [1m[35m (56.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140718104656')
+ [1m[36m (57.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140722160242')[0m
+ [1m[35m (49.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140718164841')
+ [1m[36m (50.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140718212116')[0m
+ [1m[35m (56.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140722160258')
+ [1m[36m (58.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140722161743')[0m
+ [1m[35m (57.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725142525')
+ [1m[36m (57.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725151522')[0m
+ [1m[35m (57.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140726163220')
+ [1m[36m (57.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725164847')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160828145448')
+ [1m[36m (57.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001185321')[0m
+ [1m[35m (57.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140729180849')
+ [1m[36m (57.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140722160529')[0m
+ [1m[35m (57.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140719110412')
+ [1m[36m (49.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717181406')[0m
+ [1m[35m (49.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140729083050')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141229234928')[0m
+ [1m[35m (49.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140719094023')
+ [1m[36m (49.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160723160908')[0m
+ [1m[35m (49.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140724173917')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717202527')[0m
+ [1m[35m (49.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140721172932')
+ [1m[36m (57.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140719103621')[0m
+ [1m[35m (57.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140804070517')
+ [1m[36m (65.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717180443')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140726170002')
+ [1m[36m (65.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140724173527')[0m
+ [1m[35m (65.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160824235224')
+ [1m[36m (65.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140720132559')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725152125')
+ [1m[36m (57.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141221233912')[0m
+ [1m[35m (49.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140722162315')
+ [1m[36m (49.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150311013019')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140729083408')
+ [1m[36m (57.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140719094033')[0m
+ [1m[35m (49.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140721173106')
+ [1m[36m (49.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725145953')[0m
+ [1m[35m (49.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140803073707')
+ [1m[36m (48.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717181134')[0m
+ [1m[35m (107.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140729182146')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725143734')[0m
+ [1m[35m (49.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150512040421')
+ [1m[36m (57.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140722160902')[0m
+ [1m[35m (49.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140720110811')
+ [1m[36m (90.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160828145106')[0m
+ [1m[35m (49.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725145640')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725153658')[0m
+ [1m[35m (49.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140804065726')
+ [1m[36m (49.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140725150329')[0m
+ [1m[35m (57.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140726165718')
+ [1m[36m (57.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140719094418')[0m
+ [1m[35m (57.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150510142229')
+ [1m[36m (57.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160723234233')[0m
+ [1m[35m (57.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725153215')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717183129')[0m
+ [1m[35m (48.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140725122914')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140718210349')[0m
+ [1m[35m (49.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150510235441')
+ [1m[36m (49.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140728110230')[0m
+ [1m[35m (47.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160831231640')
+ [1m[36m (58.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141027235427')[0m
+ [1m[35m (48.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141221201539')
+ [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"
+ [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
+ 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_billable_type_and_billable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_bills_on_billable_type_and_billable_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_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_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_chargable_type_and_chargable_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_charges_on_chargable_type_and_chargable_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_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_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_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_op_fp_mappings_on_operator_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
+[0m
+ [1m[35m (0.1ms)[0m SELECT sql
+ FROM sqlite_master
+ 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_op_fp_mappings_on_extface_driver_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_receipt_config_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_origins_on_receipt_config_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_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_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_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_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_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_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_tg_fp_mappings_on_tax_group_id' AND type='index'
+ UNION ALL
+ SELECT sql
+ FROM sqlite_temp_master
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
+
+ [1m[36m (0.1ms)[0m [1m SELECT sql
+ FROM sqlite_master
+ 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_tg_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'
+