billing 0.0.5a → 0.0.5b

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fa427a04690d7629d0a08954514d57f5be1d9b7
4
- data.tar.gz: dac8e6fb5fcbf41022da2c731a99ad83d5ddab8c
3
+ metadata.gz: 781b9ac74c60d10ebfa4b1e9068fe8f427668068
4
+ data.tar.gz: 51778afba6801ecb8ff99328ee3d0d0090d84d6c
5
5
  SHA512:
6
- metadata.gz: 0401503350829e7ed2f468740b26ddbf2214187d3daa393292347c080f90a29eba53a175364b4cda0050eff04f0197b3973a80ba8e35eb28777095c53c625590
7
- data.tar.gz: 6ae75a0cd7c7878501c38982837d39ce48c1684f5d1421e1b9fa5f004a2afda73be696f68f6f05bb013a4cc9d0c693089b2472c28dc62850ca7d8d9dea2f66e6
6
+ metadata.gz: b4ddd8cac42183574c0abac099d7e2716b0374b5e8df24e4e63a668ff5f5ab0e7ecef94c68318d373e3f66d4cdab76b6ffb76af6fae5aea506aed0f5c7ea22da
7
+ data.tar.gz: 5a9c4df4250e9f7d43609129c4edfe0f9922fcc9db5f527ec30c6a8e23266111773c0a45fbdfa33184e1795cef991a3cb8b9b49ed6890b2bb1ce95f131f0682a
@@ -1,4 +1,5 @@
1
1
  module Billing
2
2
  class Operator < ActiveRecord::Base
3
+ has_many :operator_fiscal_driver_mappings, inverse_of: :operator
3
4
  end
4
5
  end
@@ -0,0 +1,7 @@
1
+ module Billing
2
+ class OperatorFiscalDriverMapping < ActiveRecord::Base
3
+ self.table_name = "billing_op_fp_mappings"
4
+ belongs_to :operator, inverse_of: :operator_fiscal_driver_mappings
5
+ belongs_to :extface_driver, class_name: 'Extface::Driver'
6
+ end
7
+ end
@@ -0,0 +1,4 @@
1
+ module Billing
2
+ class Resource < ActiveRecord::Base
3
+ end
4
+ end
@@ -1,4 +1,5 @@
1
1
  module Billing
2
2
  class TaxGroup < ActiveRecord::Base
3
+ has_many :tax_group_fiscal_driver_mappings, inverse_of: :tax_group
3
4
  end
4
5
  end
@@ -0,0 +1,7 @@
1
+ module Billing
2
+ class TaxGroupFiscalDriverMapping < ActiveRecord::Base
3
+ self.table_name = "billing_tg_fp_mappings"
4
+ belongs_to :tax_group, inverse_of: :tax_group_fiscal_driver_mappings
5
+ belongs_to :extface_driver, class_name: 'Extface::Driver'
6
+ end
7
+ end
@@ -0,0 +1,14 @@
1
+ class BillingTgFpMapping < ActiveRecord::Migration
2
+ def change
3
+ create_table "billing_tg_fp_mappings", force: true do |t|
4
+ t.integer "tax_group_id"
5
+ t.integer "extface_driver_id"
6
+ t.integer "mapping"
7
+ t.datetime "created_at"
8
+ t.datetime "updated_at"
9
+ end
10
+
11
+ add_index "billing_tg_fp_mappings", ["extface_driver_id"], name: "index_billing_tg_fp_mappings_on_extface_driver_id"
12
+ add_index "billing_tg_fp_mappings", ["tax_group_id"], name: "index_billing_tg_fp_mappings_on_tax_group_id"
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ class BillingOpFpMapping < ActiveRecord::Migration
2
+ def change
3
+ create_table "billing_op_fp_mappings", force: true do |t|
4
+ t.integer "operator_id"
5
+ t.integer "extface_driver_id"
6
+ t.integer "mapping"
7
+ t.datetime "created_at"
8
+ t.datetime "updated_at"
9
+ end
10
+
11
+ add_index "billing_op_fp_mappings", ["extface_driver_id"], name: "index_billing_op_fp_mappings_on_extface_driver_id"
12
+ add_index "billing_op_fp_mappings", ["operator_id"], name: "index_billing_op_fp_mappings_on_operator_id"
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ class CreateBillingResources < ActiveRecord::Migration
2
+ def change
3
+ create_table :billing_resources do |t|
4
+ t.integer :master_id
5
+ t.string :name
6
+ t.text :properties
7
+ t.boolean :banned
8
+ t.string :type
9
+
10
+ t.timestamps
11
+ t.datetime :deleted_at
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Billing
2
- VERSION = "0.0.5a"
2
+ VERSION = "0.0.5b"
3
3
  end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20141027235427) do
14
+ ActiveRecord::Schema.define(version: 20141229234928) do
15
15
 
16
16
  create_table "billing_bills", force: true do |t|
17
17
  t.integer "billable_id"
@@ -98,6 +98,17 @@ ActiveRecord::Schema.define(version: 20141027235427) do
98
98
 
99
99
  add_index "billing_modifiers", ["bill_id"], name: "index_billing_modifiers_on_bill_id"
100
100
 
101
+ create_table "billing_op_fp_mappings", force: true do |t|
102
+ t.integer "operator_id"
103
+ t.integer "extface_driver_id"
104
+ t.integer "mapping"
105
+ t.datetime "created_at"
106
+ t.datetime "updated_at"
107
+ end
108
+
109
+ add_index "billing_op_fp_mappings", ["extface_driver_id"], name: "index_billing_op_fp_mappings_on_extface_driver_id"
110
+ add_index "billing_op_fp_mappings", ["operator_id"], name: "index_billing_op_fp_mappings_on_operator_id"
111
+
101
112
  create_table "billing_operators", force: true do |t|
102
113
  t.integer "master_id"
103
114
  t.string "name"
@@ -223,6 +234,17 @@ ActiveRecord::Schema.define(version: 20141027235427) do
223
234
 
224
235
  add_index "billing_reports", ["origin_id"], name: "index_billing_reports_on_origin_id"
225
236
 
237
+ create_table "billing_resources", force: true do |t|
238
+ t.integer "master_id"
239
+ t.string "name"
240
+ t.text "properties"
241
+ t.boolean "banned"
242
+ t.string "type"
243
+ t.datetime "created_at"
244
+ t.datetime "updated_at"
245
+ t.datetime "deleted_at"
246
+ end
247
+
226
248
  create_table "billing_tax_groups", force: true do |t|
227
249
  t.string "name"
228
250
  t.datetime "created_at"
@@ -235,6 +257,17 @@ ActiveRecord::Schema.define(version: 20141027235427) do
235
257
  t.datetime "deleted_at"
236
258
  end
237
259
 
260
+ create_table "billing_tg_fp_mappings", force: true do |t|
261
+ t.integer "tax_group_id"
262
+ t.integer "extface_driver_id"
263
+ t.integer "mapping"
264
+ t.datetime "created_at"
265
+ t.datetime "updated_at"
266
+ end
267
+
268
+ add_index "billing_tg_fp_mappings", ["extface_driver_id"], name: "index_billing_tg_fp_mappings_on_extface_driver_id"
269
+ add_index "billing_tg_fp_mappings", ["tax_group_id"], name: "index_billing_tg_fp_mappings_on_tax_group_id"
270
+
238
271
  create_table "billing_versions", force: true do |t|
239
272
  t.string "item_type", null: false
240
273
  t.integer "item_id", null: false
@@ -15442,3 +15442,1439 @@ Migrating to AddFAmountToBillingReport (20141027235427)
15442
15442
  FROM sqlite_temp_master
15443
15443
  WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
15444
15444
 
15445
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
15446
+ Migrating to BillingTgFpMapping (20141221201539)
15447
+  (0.1ms) begin transaction
15448
+  (0.4ms) 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) 
15449
+  (0.1ms) select sqlite_version(*)
15450
+  (0.2ms) CREATE INDEX "index_billing_tg_fp_mappings_on_extface_driver_id" ON "billing_tg_fp_mappings" ("extface_driver_id")
15451
+  (0.1ms) SELECT sql
15452
+ FROM sqlite_master
15453
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
15454
+ UNION ALL
15455
+ SELECT sql
15456
+ FROM sqlite_temp_master
15457
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
15458
+
15459
+  (0.2ms) CREATE INDEX "index_billing_tg_fp_mappings_on_tax_group_id" ON "billing_tg_fp_mappings" ("tax_group_id")
15460
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141221201539"]]
15461
+  (141.7ms) commit transaction
15462
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
15463
+  (0.3ms)  SELECT sql
15464
+ FROM sqlite_master
15465
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
15466
+ UNION ALL
15467
+ SELECT sql
15468
+ FROM sqlite_temp_master
15469
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
15470
+ 
15471
+  (0.3ms) SELECT sql
15472
+ FROM sqlite_master
15473
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
15474
+ UNION ALL
15475
+ SELECT sql
15476
+ FROM sqlite_temp_master
15477
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
15478
+
15479
+  (0.2ms)  SELECT sql
15480
+ FROM sqlite_master
15481
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
15482
+ UNION ALL
15483
+ SELECT sql
15484
+ FROM sqlite_temp_master
15485
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
15486
+ 
15487
+  (0.3ms) SELECT sql
15488
+ FROM sqlite_master
15489
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
15490
+ UNION ALL
15491
+ SELECT sql
15492
+ FROM sqlite_temp_master
15493
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
15494
+
15495
+  (0.3ms)  SELECT sql
15496
+ FROM sqlite_master
15497
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
15498
+ UNION ALL
15499
+ SELECT sql
15500
+ FROM sqlite_temp_master
15501
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
15502
+ 
15503
+  (0.3ms) SELECT sql
15504
+ FROM sqlite_master
15505
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
15506
+ UNION ALL
15507
+ SELECT sql
15508
+ FROM sqlite_temp_master
15509
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
15510
+
15511
+  (0.3ms)  SELECT sql
15512
+ FROM sqlite_master
15513
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
15514
+ UNION ALL
15515
+ SELECT sql
15516
+ FROM sqlite_temp_master
15517
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
15518
+ 
15519
+  (0.2ms) SELECT sql
15520
+ FROM sqlite_master
15521
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
15522
+ UNION ALL
15523
+ SELECT sql
15524
+ FROM sqlite_temp_master
15525
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
15526
+
15527
+  (0.3ms)  SELECT sql
15528
+ FROM sqlite_master
15529
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
15530
+ UNION ALL
15531
+ SELECT sql
15532
+ FROM sqlite_temp_master
15533
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
15534
+ 
15535
+  (0.2ms) SELECT sql
15536
+ FROM sqlite_master
15537
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
15538
+ UNION ALL
15539
+ SELECT sql
15540
+ FROM sqlite_temp_master
15541
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
15542
+
15543
+  (0.2ms)  SELECT sql
15544
+ FROM sqlite_master
15545
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
15546
+ UNION ALL
15547
+ SELECT sql
15548
+ FROM sqlite_temp_master
15549
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
15550
+ 
15551
+  (0.2ms) SELECT sql
15552
+ FROM sqlite_master
15553
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
15554
+ UNION ALL
15555
+ SELECT sql
15556
+ FROM sqlite_temp_master
15557
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
15558
+
15559
+  (0.2ms)  SELECT sql
15560
+ FROM sqlite_master
15561
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
15562
+ UNION ALL
15563
+ SELECT sql
15564
+ FROM sqlite_temp_master
15565
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
15566
+ 
15567
+  (0.2ms) SELECT sql
15568
+ FROM sqlite_master
15569
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
15570
+ UNION ALL
15571
+ SELECT sql
15572
+ FROM sqlite_temp_master
15573
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
15574
+
15575
+  (0.2ms)  SELECT sql
15576
+ FROM sqlite_master
15577
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
15578
+ UNION ALL
15579
+ SELECT sql
15580
+ FROM sqlite_temp_master
15581
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
15582
+ 
15583
+  (0.2ms) SELECT sql
15584
+ FROM sqlite_master
15585
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
15586
+ UNION ALL
15587
+ SELECT sql
15588
+ FROM sqlite_temp_master
15589
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
15590
+
15591
+  (0.2ms)  SELECT sql
15592
+ FROM sqlite_master
15593
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
15594
+ UNION ALL
15595
+ SELECT sql
15596
+ FROM sqlite_temp_master
15597
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
15598
+ 
15599
+  (0.2ms) SELECT sql
15600
+ FROM sqlite_master
15601
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
15602
+ UNION ALL
15603
+ SELECT sql
15604
+ FROM sqlite_temp_master
15605
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
15606
+
15607
+  (0.2ms)  SELECT sql
15608
+ FROM sqlite_master
15609
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
15610
+ UNION ALL
15611
+ SELECT sql
15612
+ FROM sqlite_temp_master
15613
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
15614
+ 
15615
+  (0.2ms) SELECT sql
15616
+ FROM sqlite_master
15617
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
15618
+ UNION ALL
15619
+ SELECT sql
15620
+ FROM sqlite_temp_master
15621
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
15622
+
15623
+  (0.2ms)  SELECT sql
15624
+ FROM sqlite_master
15625
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
15626
+ UNION ALL
15627
+ SELECT sql
15628
+ FROM sqlite_temp_master
15629
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
15630
+ 
15631
+  (0.2ms) SELECT sql
15632
+ FROM sqlite_master
15633
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
15634
+ UNION ALL
15635
+ SELECT sql
15636
+ FROM sqlite_temp_master
15637
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
15638
+
15639
+  (0.2ms)  SELECT sql
15640
+ FROM sqlite_master
15641
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
15642
+ UNION ALL
15643
+ SELECT sql
15644
+ FROM sqlite_temp_master
15645
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
15646
+ 
15647
+  (0.2ms) SELECT sql
15648
+ FROM sqlite_master
15649
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
15650
+ UNION ALL
15651
+ SELECT sql
15652
+ FROM sqlite_temp_master
15653
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
15654
+
15655
+  (0.2ms)  SELECT sql
15656
+ FROM sqlite_master
15657
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
15658
+ UNION ALL
15659
+ SELECT sql
15660
+ FROM sqlite_temp_master
15661
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
15662
+ 
15663
+  (0.2ms) SELECT sql
15664
+ FROM sqlite_master
15665
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
15666
+ UNION ALL
15667
+ SELECT sql
15668
+ FROM sqlite_temp_master
15669
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
15670
+
15671
+  (0.2ms)  SELECT sql
15672
+ FROM sqlite_master
15673
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
15674
+ UNION ALL
15675
+ SELECT sql
15676
+ FROM sqlite_temp_master
15677
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
15678
+ 
15679
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
15680
+ Migrating to BillingOpFpMapping (20141221233912)
15681
+  (0.1ms) begin transaction
15682
+  (0.4ms) 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) 
15683
+  (0.1ms) select sqlite_version(*)
15684
+  (0.2ms) CREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")
15685
+  (0.1ms) SELECT sql
15686
+ FROM sqlite_master
15687
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
15688
+ UNION ALL
15689
+ SELECT sql
15690
+ FROM sqlite_temp_master
15691
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
15692
+
15693
+  (0.2ms) CREATE INDEX "index_billing_op_fp_mappings_on_operator_id" ON "billing_op_fp_mappings" ("operator_id")
15694
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141221233912"]]
15695
+  (190.5ms) commit transaction
15696
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
15697
+  (0.2ms)  SELECT sql
15698
+ FROM sqlite_master
15699
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
15700
+ UNION ALL
15701
+ SELECT sql
15702
+ FROM sqlite_temp_master
15703
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
15704
+ 
15705
+  (0.2ms) SELECT sql
15706
+ FROM sqlite_master
15707
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
15708
+ UNION ALL
15709
+ SELECT sql
15710
+ FROM sqlite_temp_master
15711
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
15712
+
15713
+  (0.2ms)  SELECT sql
15714
+ FROM sqlite_master
15715
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
15716
+ UNION ALL
15717
+ SELECT sql
15718
+ FROM sqlite_temp_master
15719
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
15720
+ 
15721
+  (0.1ms) SELECT sql
15722
+ FROM sqlite_master
15723
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
15724
+ UNION ALL
15725
+ SELECT sql
15726
+ FROM sqlite_temp_master
15727
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
15728
+
15729
+  (0.2ms)  SELECT sql
15730
+ FROM sqlite_master
15731
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
15732
+ UNION ALL
15733
+ SELECT sql
15734
+ FROM sqlite_temp_master
15735
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
15736
+ 
15737
+  (0.1ms) SELECT sql
15738
+ FROM sqlite_master
15739
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
15740
+ UNION ALL
15741
+ SELECT sql
15742
+ FROM sqlite_temp_master
15743
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
15744
+
15745
+  (0.2ms)  SELECT sql
15746
+ FROM sqlite_master
15747
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
15748
+ UNION ALL
15749
+ SELECT sql
15750
+ FROM sqlite_temp_master
15751
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
15752
+ 
15753
+  (0.1ms) SELECT sql
15754
+ FROM sqlite_master
15755
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
15756
+ UNION ALL
15757
+ SELECT sql
15758
+ FROM sqlite_temp_master
15759
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
15760
+
15761
+  (0.2ms)  SELECT sql
15762
+ FROM sqlite_master
15763
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
15764
+ UNION ALL
15765
+ SELECT sql
15766
+ FROM sqlite_temp_master
15767
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
15768
+ 
15769
+  (0.2ms) SELECT sql
15770
+ FROM sqlite_master
15771
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
15772
+ UNION ALL
15773
+ SELECT sql
15774
+ FROM sqlite_temp_master
15775
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
15776
+
15777
+  (0.2ms)  SELECT sql
15778
+ FROM sqlite_master
15779
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
15780
+ UNION ALL
15781
+ SELECT sql
15782
+ FROM sqlite_temp_master
15783
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
15784
+ 
15785
+  (0.2ms) SELECT sql
15786
+ FROM sqlite_master
15787
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
15788
+ UNION ALL
15789
+ SELECT sql
15790
+ FROM sqlite_temp_master
15791
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
15792
+
15793
+  (0.2ms)  SELECT sql
15794
+ FROM sqlite_master
15795
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
15796
+ UNION ALL
15797
+ SELECT sql
15798
+ FROM sqlite_temp_master
15799
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
15800
+ 
15801
+  (0.1ms) SELECT sql
15802
+ FROM sqlite_master
15803
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
15804
+ UNION ALL
15805
+ SELECT sql
15806
+ FROM sqlite_temp_master
15807
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
15808
+
15809
+  (0.1ms)  SELECT sql
15810
+ FROM sqlite_master
15811
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
15812
+ UNION ALL
15813
+ SELECT sql
15814
+ FROM sqlite_temp_master
15815
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
15816
+ 
15817
+  (0.1ms) SELECT sql
15818
+ FROM sqlite_master
15819
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
15820
+ UNION ALL
15821
+ SELECT sql
15822
+ FROM sqlite_temp_master
15823
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
15824
+
15825
+  (0.1ms)  SELECT sql
15826
+ FROM sqlite_master
15827
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
15828
+ UNION ALL
15829
+ SELECT sql
15830
+ FROM sqlite_temp_master
15831
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
15832
+ 
15833
+  (0.1ms) SELECT sql
15834
+ FROM sqlite_master
15835
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
15836
+ UNION ALL
15837
+ SELECT sql
15838
+ FROM sqlite_temp_master
15839
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
15840
+
15841
+  (0.2ms)  SELECT sql
15842
+ FROM sqlite_master
15843
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
15844
+ UNION ALL
15845
+ SELECT sql
15846
+ FROM sqlite_temp_master
15847
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
15848
+ 
15849
+  (0.1ms) SELECT sql
15850
+ FROM sqlite_master
15851
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
15852
+ UNION ALL
15853
+ SELECT sql
15854
+ FROM sqlite_temp_master
15855
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
15856
+
15857
+  (0.1ms)  SELECT sql
15858
+ FROM sqlite_master
15859
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
15860
+ UNION ALL
15861
+ SELECT sql
15862
+ FROM sqlite_temp_master
15863
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
15864
+ 
15865
+  (0.1ms) SELECT sql
15866
+ FROM sqlite_master
15867
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
15868
+ UNION ALL
15869
+ SELECT sql
15870
+ FROM sqlite_temp_master
15871
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
15872
+
15873
+  (0.2ms)  SELECT sql
15874
+ FROM sqlite_master
15875
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
15876
+ UNION ALL
15877
+ SELECT sql
15878
+ FROM sqlite_temp_master
15879
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
15880
+ 
15881
+  (0.1ms) SELECT sql
15882
+ FROM sqlite_master
15883
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
15884
+ UNION ALL
15885
+ SELECT sql
15886
+ FROM sqlite_temp_master
15887
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
15888
+
15889
+  (0.1ms)  SELECT sql
15890
+ FROM sqlite_master
15891
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
15892
+ UNION ALL
15893
+ SELECT sql
15894
+ FROM sqlite_temp_master
15895
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
15896
+ 
15897
+  (0.2ms) SELECT sql
15898
+ FROM sqlite_master
15899
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
15900
+ UNION ALL
15901
+ SELECT sql
15902
+ FROM sqlite_temp_master
15903
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
15904
+
15905
+  (0.1ms)  SELECT sql
15906
+ FROM sqlite_master
15907
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
15908
+ UNION ALL
15909
+ SELECT sql
15910
+ FROM sqlite_temp_master
15911
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
15912
+ 
15913
+  (0.2ms) SELECT sql
15914
+ FROM sqlite_master
15915
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
15916
+ UNION ALL
15917
+ SELECT sql
15918
+ FROM sqlite_temp_master
15919
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
15920
+
15921
+  (0.1ms)  SELECT sql
15922
+ FROM sqlite_master
15923
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
15924
+ UNION ALL
15925
+ SELECT sql
15926
+ FROM sqlite_temp_master
15927
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
15928
+ 
15929
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
15930
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15931
+  (0.1ms)  SELECT sql
15932
+ FROM sqlite_master
15933
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
15934
+ UNION ALL
15935
+ SELECT sql
15936
+ FROM sqlite_temp_master
15937
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
15938
+ 
15939
+  (0.1ms) SELECT sql
15940
+ FROM sqlite_master
15941
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
15942
+ UNION ALL
15943
+ SELECT sql
15944
+ FROM sqlite_temp_master
15945
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
15946
+
15947
+  (0.1ms)  SELECT sql
15948
+ FROM sqlite_master
15949
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
15950
+ UNION ALL
15951
+ SELECT sql
15952
+ FROM sqlite_temp_master
15953
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
15954
+ 
15955
+  (0.1ms) SELECT sql
15956
+ FROM sqlite_master
15957
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
15958
+ UNION ALL
15959
+ SELECT sql
15960
+ FROM sqlite_temp_master
15961
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
15962
+
15963
+  (0.1ms)  SELECT sql
15964
+ FROM sqlite_master
15965
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
15966
+ UNION ALL
15967
+ SELECT sql
15968
+ FROM sqlite_temp_master
15969
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
15970
+ 
15971
+  (0.1ms) SELECT sql
15972
+ FROM sqlite_master
15973
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
15974
+ UNION ALL
15975
+ SELECT sql
15976
+ FROM sqlite_temp_master
15977
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
15978
+
15979
+  (0.1ms)  SELECT sql
15980
+ FROM sqlite_master
15981
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
15982
+ UNION ALL
15983
+ SELECT sql
15984
+ FROM sqlite_temp_master
15985
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
15986
+ 
15987
+  (0.1ms) SELECT sql
15988
+ FROM sqlite_master
15989
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
15990
+ UNION ALL
15991
+ SELECT sql
15992
+ FROM sqlite_temp_master
15993
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
15994
+
15995
+  (0.1ms)  SELECT sql
15996
+ FROM sqlite_master
15997
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
15998
+ UNION ALL
15999
+ SELECT sql
16000
+ FROM sqlite_temp_master
16001
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
16002
+ 
16003
+  (0.1ms) SELECT sql
16004
+ FROM sqlite_master
16005
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
16006
+ UNION ALL
16007
+ SELECT sql
16008
+ FROM sqlite_temp_master
16009
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
16010
+
16011
+  (0.1ms)  SELECT sql
16012
+ FROM sqlite_master
16013
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
16014
+ UNION ALL
16015
+ SELECT sql
16016
+ FROM sqlite_temp_master
16017
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
16018
+ 
16019
+  (0.1ms) SELECT sql
16020
+ FROM sqlite_master
16021
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
16022
+ UNION ALL
16023
+ SELECT sql
16024
+ FROM sqlite_temp_master
16025
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
16026
+
16027
+  (0.1ms)  SELECT sql
16028
+ FROM sqlite_master
16029
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
16030
+ UNION ALL
16031
+ SELECT sql
16032
+ FROM sqlite_temp_master
16033
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
16034
+ 
16035
+  (0.1ms) SELECT sql
16036
+ FROM sqlite_master
16037
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
16038
+ UNION ALL
16039
+ SELECT sql
16040
+ FROM sqlite_temp_master
16041
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
16042
+
16043
+  (0.1ms)  SELECT sql
16044
+ FROM sqlite_master
16045
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
16046
+ UNION ALL
16047
+ SELECT sql
16048
+ FROM sqlite_temp_master
16049
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
16050
+ 
16051
+  (0.1ms) SELECT sql
16052
+ FROM sqlite_master
16053
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
16054
+ UNION ALL
16055
+ SELECT sql
16056
+ FROM sqlite_temp_master
16057
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
16058
+
16059
+  (0.1ms)  SELECT sql
16060
+ FROM sqlite_master
16061
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
16062
+ UNION ALL
16063
+ SELECT sql
16064
+ FROM sqlite_temp_master
16065
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
16066
+ 
16067
+  (0.1ms) SELECT sql
16068
+ FROM sqlite_master
16069
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
16070
+ UNION ALL
16071
+ SELECT sql
16072
+ FROM sqlite_temp_master
16073
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
16074
+
16075
+  (0.1ms)  SELECT sql
16076
+ FROM sqlite_master
16077
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
16078
+ UNION ALL
16079
+ SELECT sql
16080
+ FROM sqlite_temp_master
16081
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
16082
+ 
16083
+  (0.1ms) SELECT sql
16084
+ FROM sqlite_master
16085
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
16086
+ UNION ALL
16087
+ SELECT sql
16088
+ FROM sqlite_temp_master
16089
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
16090
+
16091
+  (0.1ms)  SELECT sql
16092
+ FROM sqlite_master
16093
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
16094
+ UNION ALL
16095
+ SELECT sql
16096
+ FROM sqlite_temp_master
16097
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
16098
+ 
16099
+  (0.1ms) SELECT sql
16100
+ FROM sqlite_master
16101
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
16102
+ UNION ALL
16103
+ SELECT sql
16104
+ FROM sqlite_temp_master
16105
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
16106
+
16107
+  (0.1ms)  SELECT sql
16108
+ FROM sqlite_master
16109
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
16110
+ UNION ALL
16111
+ SELECT sql
16112
+ FROM sqlite_temp_master
16113
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
16114
+ 
16115
+  (0.1ms) SELECT sql
16116
+ FROM sqlite_master
16117
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
16118
+ UNION ALL
16119
+ SELECT sql
16120
+ FROM sqlite_temp_master
16121
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
16122
+
16123
+  (0.1ms)  SELECT sql
16124
+ FROM sqlite_master
16125
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
16126
+ UNION ALL
16127
+ SELECT sql
16128
+ FROM sqlite_temp_master
16129
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
16130
+ 
16131
+  (0.1ms) SELECT sql
16132
+ FROM sqlite_master
16133
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
16134
+ UNION ALL
16135
+ SELECT sql
16136
+ FROM sqlite_temp_master
16137
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
16138
+
16139
+  (0.1ms)  SELECT sql
16140
+ FROM sqlite_master
16141
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
16142
+ UNION ALL
16143
+ SELECT sql
16144
+ FROM sqlite_temp_master
16145
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
16146
+ 
16147
+  (0.1ms) SELECT sql
16148
+ FROM sqlite_master
16149
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
16150
+ UNION ALL
16151
+ SELECT sql
16152
+ FROM sqlite_temp_master
16153
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
16154
+
16155
+  (0.1ms)  SELECT sql
16156
+ FROM sqlite_master
16157
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
16158
+ UNION ALL
16159
+ SELECT sql
16160
+ FROM sqlite_temp_master
16161
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
16162
+ 
16163
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
16164
+ Migrating to CreateBillingResources (20141229234928)
16165
+  (0.3ms) begin transaction
16166
+  (0.9ms) CREATE TABLE "billing_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "properties" text, "banned" boolean, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "deleted_at" datetime) 
16167
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141229234928"]]
16168
+  (127.1ms) commit transaction
16169
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
16170
+  (0.3ms)  SELECT sql
16171
+ FROM sqlite_master
16172
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
16173
+ UNION ALL
16174
+ SELECT sql
16175
+ FROM sqlite_temp_master
16176
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
16177
+ 
16178
+  (0.3ms) SELECT sql
16179
+ FROM sqlite_master
16180
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
16181
+ UNION ALL
16182
+ SELECT sql
16183
+ FROM sqlite_temp_master
16184
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
16185
+
16186
+  (0.2ms)  SELECT sql
16187
+ FROM sqlite_master
16188
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
16189
+ UNION ALL
16190
+ SELECT sql
16191
+ FROM sqlite_temp_master
16192
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
16193
+ 
16194
+  (0.3ms) SELECT sql
16195
+ FROM sqlite_master
16196
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
16197
+ UNION ALL
16198
+ SELECT sql
16199
+ FROM sqlite_temp_master
16200
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
16201
+
16202
+  (0.3ms)  SELECT sql
16203
+ FROM sqlite_master
16204
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
16205
+ UNION ALL
16206
+ SELECT sql
16207
+ FROM sqlite_temp_master
16208
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
16209
+ 
16210
+  (0.3ms) SELECT sql
16211
+ FROM sqlite_master
16212
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
16213
+ UNION ALL
16214
+ SELECT sql
16215
+ FROM sqlite_temp_master
16216
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
16217
+
16218
+  (0.2ms)  SELECT sql
16219
+ FROM sqlite_master
16220
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
16221
+ UNION ALL
16222
+ SELECT sql
16223
+ FROM sqlite_temp_master
16224
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
16225
+ 
16226
+  (0.2ms) SELECT sql
16227
+ FROM sqlite_master
16228
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
16229
+ UNION ALL
16230
+ SELECT sql
16231
+ FROM sqlite_temp_master
16232
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
16233
+
16234
+  (0.2ms)  SELECT sql
16235
+ FROM sqlite_master
16236
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
16237
+ UNION ALL
16238
+ SELECT sql
16239
+ FROM sqlite_temp_master
16240
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
16241
+ 
16242
+  (0.3ms) SELECT sql
16243
+ FROM sqlite_master
16244
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
16245
+ UNION ALL
16246
+ SELECT sql
16247
+ FROM sqlite_temp_master
16248
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
16249
+
16250
+  (0.2ms)  SELECT sql
16251
+ FROM sqlite_master
16252
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
16253
+ UNION ALL
16254
+ SELECT sql
16255
+ FROM sqlite_temp_master
16256
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
16257
+ 
16258
+  (0.2ms) SELECT sql
16259
+ FROM sqlite_master
16260
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
16261
+ UNION ALL
16262
+ SELECT sql
16263
+ FROM sqlite_temp_master
16264
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
16265
+
16266
+  (0.2ms)  SELECT sql
16267
+ FROM sqlite_master
16268
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
16269
+ UNION ALL
16270
+ SELECT sql
16271
+ FROM sqlite_temp_master
16272
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
16273
+ 
16274
+  (0.2ms) SELECT sql
16275
+ FROM sqlite_master
16276
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
16277
+ UNION ALL
16278
+ SELECT sql
16279
+ FROM sqlite_temp_master
16280
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
16281
+
16282
+  (0.2ms)  SELECT sql
16283
+ FROM sqlite_master
16284
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
16285
+ UNION ALL
16286
+ SELECT sql
16287
+ FROM sqlite_temp_master
16288
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
16289
+ 
16290
+  (0.2ms) SELECT sql
16291
+ FROM sqlite_master
16292
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
16293
+ UNION ALL
16294
+ SELECT sql
16295
+ FROM sqlite_temp_master
16296
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
16297
+
16298
+  (0.2ms)  SELECT sql
16299
+ FROM sqlite_master
16300
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
16301
+ UNION ALL
16302
+ SELECT sql
16303
+ FROM sqlite_temp_master
16304
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
16305
+ 
16306
+  (0.2ms) SELECT sql
16307
+ FROM sqlite_master
16308
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
16309
+ UNION ALL
16310
+ SELECT sql
16311
+ FROM sqlite_temp_master
16312
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
16313
+
16314
+  (0.2ms)  SELECT sql
16315
+ FROM sqlite_master
16316
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
16317
+ UNION ALL
16318
+ SELECT sql
16319
+ FROM sqlite_temp_master
16320
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
16321
+ 
16322
+  (0.2ms) SELECT sql
16323
+ FROM sqlite_master
16324
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
16325
+ UNION ALL
16326
+ SELECT sql
16327
+ FROM sqlite_temp_master
16328
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
16329
+
16330
+  (0.2ms)  SELECT sql
16331
+ FROM sqlite_master
16332
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
16333
+ UNION ALL
16334
+ SELECT sql
16335
+ FROM sqlite_temp_master
16336
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
16337
+ 
16338
+  (0.2ms) SELECT sql
16339
+ FROM sqlite_master
16340
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
16341
+ UNION ALL
16342
+ SELECT sql
16343
+ FROM sqlite_temp_master
16344
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
16345
+
16346
+  (0.2ms)  SELECT sql
16347
+ FROM sqlite_master
16348
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
16349
+ UNION ALL
16350
+ SELECT sql
16351
+ FROM sqlite_temp_master
16352
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
16353
+ 
16354
+  (0.2ms) SELECT sql
16355
+ FROM sqlite_master
16356
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
16357
+ UNION ALL
16358
+ SELECT sql
16359
+ FROM sqlite_temp_master
16360
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
16361
+
16362
+  (0.2ms)  SELECT sql
16363
+ FROM sqlite_master
16364
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
16365
+ UNION ALL
16366
+ SELECT sql
16367
+ FROM sqlite_temp_master
16368
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
16369
+ 
16370
+  (0.2ms) SELECT sql
16371
+ FROM sqlite_master
16372
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
16373
+ UNION ALL
16374
+ SELECT sql
16375
+ FROM sqlite_temp_master
16376
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
16377
+
16378
+  (0.2ms)  SELECT sql
16379
+ FROM sqlite_master
16380
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
16381
+ UNION ALL
16382
+ SELECT sql
16383
+ FROM sqlite_temp_master
16384
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
16385
+ 
16386
+  (0.2ms) SELECT sql
16387
+ FROM sqlite_master
16388
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
16389
+ UNION ALL
16390
+ SELECT sql
16391
+ FROM sqlite_temp_master
16392
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
16393
+
16394
+  (0.2ms)  SELECT sql
16395
+ FROM sqlite_master
16396
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
16397
+ UNION ALL
16398
+ SELECT sql
16399
+ FROM sqlite_temp_master
16400
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
16401
+ 
16402
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
16403
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
16404
+ Migrating to CreateBillingResources (20141229234928)
16405
+  (0.1ms) begin transaction
16406
+  (0.3ms) DROP TABLE "billing_resources"
16407
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141229234928'
16408
+  (152.7ms) commit transaction
16409
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16410
+  (0.1ms) SELECT sql
16411
+ FROM sqlite_master
16412
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
16413
+ UNION ALL
16414
+ SELECT sql
16415
+ FROM sqlite_temp_master
16416
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
16417
+
16418
+  (0.1ms)  SELECT sql
16419
+ FROM sqlite_master
16420
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
16421
+ UNION ALL
16422
+ SELECT sql
16423
+ FROM sqlite_temp_master
16424
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
16425
+ 
16426
+  (0.1ms) SELECT sql
16427
+ FROM sqlite_master
16428
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
16429
+ UNION ALL
16430
+ SELECT sql
16431
+ FROM sqlite_temp_master
16432
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
16433
+
16434
+  (0.1ms)  SELECT sql
16435
+ FROM sqlite_master
16436
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
16437
+ UNION ALL
16438
+ SELECT sql
16439
+ FROM sqlite_temp_master
16440
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
16441
+ 
16442
+  (0.1ms) SELECT sql
16443
+ FROM sqlite_master
16444
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
16445
+ UNION ALL
16446
+ SELECT sql
16447
+ FROM sqlite_temp_master
16448
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
16449
+
16450
+  (0.1ms)  SELECT sql
16451
+ FROM sqlite_master
16452
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
16453
+ UNION ALL
16454
+ SELECT sql
16455
+ FROM sqlite_temp_master
16456
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
16457
+ 
16458
+  (0.1ms) SELECT sql
16459
+ FROM sqlite_master
16460
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
16461
+ UNION ALL
16462
+ SELECT sql
16463
+ FROM sqlite_temp_master
16464
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
16465
+
16466
+  (0.1ms)  SELECT sql
16467
+ FROM sqlite_master
16468
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
16469
+ UNION ALL
16470
+ SELECT sql
16471
+ FROM sqlite_temp_master
16472
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
16473
+ 
16474
+  (0.1ms) SELECT sql
16475
+ FROM sqlite_master
16476
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
16477
+ UNION ALL
16478
+ SELECT sql
16479
+ FROM sqlite_temp_master
16480
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
16481
+
16482
+  (0.2ms)  SELECT sql
16483
+ FROM sqlite_master
16484
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
16485
+ UNION ALL
16486
+ SELECT sql
16487
+ FROM sqlite_temp_master
16488
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
16489
+ 
16490
+  (0.1ms) SELECT sql
16491
+ FROM sqlite_master
16492
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
16493
+ UNION ALL
16494
+ SELECT sql
16495
+ FROM sqlite_temp_master
16496
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
16497
+
16498
+  (0.1ms)  SELECT sql
16499
+ FROM sqlite_master
16500
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
16501
+ UNION ALL
16502
+ SELECT sql
16503
+ FROM sqlite_temp_master
16504
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
16505
+ 
16506
+  (0.1ms) SELECT sql
16507
+ FROM sqlite_master
16508
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
16509
+ UNION ALL
16510
+ SELECT sql
16511
+ FROM sqlite_temp_master
16512
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
16513
+
16514
+  (0.1ms)  SELECT sql
16515
+ FROM sqlite_master
16516
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
16517
+ UNION ALL
16518
+ SELECT sql
16519
+ FROM sqlite_temp_master
16520
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
16521
+ 
16522
+  (0.1ms) SELECT sql
16523
+ FROM sqlite_master
16524
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
16525
+ UNION ALL
16526
+ SELECT sql
16527
+ FROM sqlite_temp_master
16528
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
16529
+
16530
+  (0.1ms)  SELECT sql
16531
+ FROM sqlite_master
16532
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
16533
+ UNION ALL
16534
+ SELECT sql
16535
+ FROM sqlite_temp_master
16536
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
16537
+ 
16538
+  (0.1ms) SELECT sql
16539
+ FROM sqlite_master
16540
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
16541
+ UNION ALL
16542
+ SELECT sql
16543
+ FROM sqlite_temp_master
16544
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
16545
+
16546
+  (0.1ms)  SELECT sql
16547
+ FROM sqlite_master
16548
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
16549
+ UNION ALL
16550
+ SELECT sql
16551
+ FROM sqlite_temp_master
16552
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
16553
+ 
16554
+  (0.1ms) SELECT sql
16555
+ FROM sqlite_master
16556
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
16557
+ UNION ALL
16558
+ SELECT sql
16559
+ FROM sqlite_temp_master
16560
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
16561
+
16562
+  (0.1ms)  SELECT sql
16563
+ FROM sqlite_master
16564
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
16565
+ UNION ALL
16566
+ SELECT sql
16567
+ FROM sqlite_temp_master
16568
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
16569
+ 
16570
+  (0.1ms) SELECT sql
16571
+ FROM sqlite_master
16572
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
16573
+ UNION ALL
16574
+ SELECT sql
16575
+ FROM sqlite_temp_master
16576
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
16577
+
16578
+  (0.2ms)  SELECT sql
16579
+ FROM sqlite_master
16580
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
16581
+ UNION ALL
16582
+ SELECT sql
16583
+ FROM sqlite_temp_master
16584
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
16585
+ 
16586
+  (0.1ms) SELECT sql
16587
+ FROM sqlite_master
16588
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
16589
+ UNION ALL
16590
+ SELECT sql
16591
+ FROM sqlite_temp_master
16592
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
16593
+
16594
+  (0.1ms)  SELECT sql
16595
+ FROM sqlite_master
16596
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
16597
+ UNION ALL
16598
+ SELECT sql
16599
+ FROM sqlite_temp_master
16600
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
16601
+ 
16602
+  (0.1ms) SELECT sql
16603
+ FROM sqlite_master
16604
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
16605
+ UNION ALL
16606
+ SELECT sql
16607
+ FROM sqlite_temp_master
16608
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
16609
+
16610
+  (0.1ms)  SELECT sql
16611
+ FROM sqlite_master
16612
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
16613
+ UNION ALL
16614
+ SELECT sql
16615
+ FROM sqlite_temp_master
16616
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
16617
+ 
16618
+  (0.1ms) SELECT sql
16619
+ FROM sqlite_master
16620
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
16621
+ UNION ALL
16622
+ SELECT sql
16623
+ FROM sqlite_temp_master
16624
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
16625
+
16626
+  (0.1ms)  SELECT sql
16627
+ FROM sqlite_master
16628
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
16629
+ UNION ALL
16630
+ SELECT sql
16631
+ FROM sqlite_temp_master
16632
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
16633
+ 
16634
+  (0.1ms) SELECT sql
16635
+ FROM sqlite_master
16636
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
16637
+ UNION ALL
16638
+ SELECT sql
16639
+ FROM sqlite_temp_master
16640
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
16641
+
16642
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16643
+ Migrating to CreateBillingResources (20141229234928)
16644
+  (0.1ms) begin transaction
16645
+  (0.3ms) CREATE TABLE "billing_resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "master_id" integer, "name" varchar(255), "properties" text, "banned" boolean, "type" varchar(255), "created_at" datetime, "updated_at" datetime, "deleted_at" datetime) 
16646
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141229234928"]]
16647
+  (187.8ms) commit transaction
16648
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
16649
+  (0.5ms)  SELECT sql
16650
+ FROM sqlite_master
16651
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
16652
+ UNION ALL
16653
+ SELECT sql
16654
+ FROM sqlite_temp_master
16655
+ WHERE name='index_billing_bills_on_billable_id_and_billable_type' AND type='index'
16656
+ 
16657
+  (0.3ms) SELECT sql
16658
+ FROM sqlite_master
16659
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
16660
+ UNION ALL
16661
+ SELECT sql
16662
+ FROM sqlite_temp_master
16663
+ WHERE name='index_billing_bills_on_origin_id' AND type='index'
16664
+
16665
+  (0.3ms)  SELECT sql
16666
+ FROM sqlite_master
16667
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
16668
+ UNION ALL
16669
+ SELECT sql
16670
+ FROM sqlite_temp_master
16671
+ WHERE name='index_billing_bills_on_extface_job_id' AND type='index'
16672
+ 
16673
+  (0.2ms) SELECT sql
16674
+ FROM sqlite_master
16675
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
16676
+ UNION ALL
16677
+ SELECT sql
16678
+ FROM sqlite_temp_master
16679
+ WHERE name='index_billing_bills_on_report_id' AND type='index'
16680
+
16681
+  (0.3ms)  SELECT sql
16682
+ FROM sqlite_master
16683
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
16684
+ UNION ALL
16685
+ SELECT sql
16686
+ FROM sqlite_temp_master
16687
+ WHERE name='index_billing_charges_on_bill_id' AND type='index'
16688
+ 
16689
+  (0.2ms) SELECT sql
16690
+ FROM sqlite_master
16691
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
16692
+ UNION ALL
16693
+ SELECT sql
16694
+ FROM sqlite_temp_master
16695
+ WHERE name='index_billing_charges_on_revenue_at' AND type='index'
16696
+
16697
+  (0.2ms)  SELECT sql
16698
+ FROM sqlite_master
16699
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
16700
+ UNION ALL
16701
+ SELECT sql
16702
+ FROM sqlite_temp_master
16703
+ WHERE name='index_billing_charges_on_deleted_at' AND type='index'
16704
+ 
16705
+  (0.2ms) SELECT sql
16706
+ FROM sqlite_master
16707
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
16708
+ UNION ALL
16709
+ SELECT sql
16710
+ FROM sqlite_temp_master
16711
+ WHERE name='index_billing_charges_on_origin_id' AND type='index'
16712
+
16713
+  (0.2ms)  SELECT sql
16714
+ FROM sqlite_master
16715
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
16716
+ UNION ALL
16717
+ SELECT sql
16718
+ FROM sqlite_temp_master
16719
+ WHERE name='index_billing_charges_on_chargable_id_and_chargable_type' AND type='index'
16720
+ 
16721
+  (0.3ms) SELECT sql
16722
+ FROM sqlite_master
16723
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
16724
+ UNION ALL
16725
+ SELECT sql
16726
+ FROM sqlite_temp_master
16727
+ WHERE name='index_billing_departments_on_deleted_at' AND type='index'
16728
+
16729
+  (0.2ms)  SELECT sql
16730
+ FROM sqlite_master
16731
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
16732
+ UNION ALL
16733
+ SELECT sql
16734
+ FROM sqlite_temp_master
16735
+ WHERE name='index_billing_departments_on_tax_group_id' AND type='index'
16736
+ 
16737
+  (0.2ms) SELECT sql
16738
+ FROM sqlite_master
16739
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
16740
+ UNION ALL
16741
+ SELECT sql
16742
+ FROM sqlite_temp_master
16743
+ WHERE name='index_billing_modifiers_on_bill_id' AND type='index'
16744
+
16745
+  (0.2ms)  SELECT sql
16746
+ FROM sqlite_master
16747
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
16748
+ UNION ALL
16749
+ SELECT sql
16750
+ FROM sqlite_temp_master
16751
+ WHERE name='index_billing_op_fp_mappings_on_operator_id' AND type='index'
16752
+ 
16753
+  (0.2ms) SELECT sql
16754
+ FROM sqlite_master
16755
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
16756
+ UNION ALL
16757
+ SELECT sql
16758
+ FROM sqlite_temp_master
16759
+ WHERE name='index_billing_op_fp_mappings_on_extface_driver_id' AND type='index'
16760
+
16761
+  (0.2ms)  SELECT sql
16762
+ FROM sqlite_master
16763
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
16764
+ UNION ALL
16765
+ SELECT sql
16766
+ FROM sqlite_temp_master
16767
+ WHERE name='index_billing_operators_on_deleted_at' AND type='index'
16768
+ 
16769
+  (0.2ms) SELECT sql
16770
+ FROM sqlite_master
16771
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
16772
+ UNION ALL
16773
+ SELECT sql
16774
+ FROM sqlite_temp_master
16775
+ WHERE name='index_billing_origins_on_transfer_device_id' AND type='index'
16776
+
16777
+  (0.2ms)  SELECT sql
16778
+ FROM sqlite_master
16779
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
16780
+ UNION ALL
16781
+ SELECT sql
16782
+ FROM sqlite_temp_master
16783
+ WHERE name='index_billing_origins_on_deleted_at' AND type='index'
16784
+ 
16785
+  (0.2ms) SELECT sql
16786
+ FROM sqlite_master
16787
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
16788
+ UNION ALL
16789
+ SELECT sql
16790
+ FROM sqlite_temp_master
16791
+ WHERE name='index_billing_origins_on_fiscal_device_id' AND type='index'
16792
+
16793
+  (0.2ms)  SELECT sql
16794
+ FROM sqlite_master
16795
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
16796
+ UNION ALL
16797
+ SELECT sql
16798
+ FROM sqlite_temp_master
16799
+ WHERE name='index_billing_payment_types_on_deleted_at' AND type='index'
16800
+ 
16801
+  (0.2ms) SELECT sql
16802
+ FROM sqlite_master
16803
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
16804
+ UNION ALL
16805
+ SELECT sql
16806
+ FROM sqlite_temp_master
16807
+ WHERE name='index_billing_payments_on_bill_id' AND type='index'
16808
+
16809
+  (0.2ms)  SELECT sql
16810
+ FROM sqlite_master
16811
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
16812
+ UNION ALL
16813
+ SELECT sql
16814
+ FROM sqlite_temp_master
16815
+ WHERE name='index_billing_payments_on_deleted_at' AND type='index'
16816
+ 
16817
+  (0.2ms) SELECT sql
16818
+ FROM sqlite_master
16819
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
16820
+ UNION ALL
16821
+ SELECT sql
16822
+ FROM sqlite_temp_master
16823
+ WHERE name='index_billing_plus_on_department_id' AND type='index'
16824
+
16825
+  (0.2ms)  SELECT sql
16826
+ FROM sqlite_master
16827
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
16828
+ UNION ALL
16829
+ SELECT sql
16830
+ FROM sqlite_temp_master
16831
+ WHERE name='index_billing_plus_on_tax_group_id' AND type='index'
16832
+ 
16833
+  (0.2ms) SELECT sql
16834
+ FROM sqlite_master
16835
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
16836
+ UNION ALL
16837
+ SELECT sql
16838
+ FROM sqlite_temp_master
16839
+ WHERE name='index_billing_pt_fp_mappings_on_payment_type_id' AND type='index'
16840
+
16841
+  (0.2ms)  SELECT sql
16842
+ FROM sqlite_master
16843
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
16844
+ UNION ALL
16845
+ SELECT sql
16846
+ FROM sqlite_temp_master
16847
+ WHERE name='index_billing_pt_fp_mappings_on_extface_driver_id' AND type='index'
16848
+ 
16849
+  (0.2ms) SELECT sql
16850
+ FROM sqlite_master
16851
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
16852
+ UNION ALL
16853
+ SELECT sql
16854
+ FROM sqlite_temp_master
16855
+ WHERE name='index_billing_reports_on_origin_id' AND type='index'
16856
+
16857
+  (0.2ms)  SELECT sql
16858
+ FROM sqlite_master
16859
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
16860
+ UNION ALL
16861
+ SELECT sql
16862
+ FROM sqlite_temp_master
16863
+ WHERE name='index_billing_tg_fp_mappings_on_tax_group_id' AND type='index'
16864
+ 
16865
+  (0.2ms) SELECT sql
16866
+ FROM sqlite_master
16867
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
16868
+ UNION ALL
16869
+ SELECT sql
16870
+ FROM sqlite_temp_master
16871
+ WHERE name='index_billing_tg_fp_mappings_on_extface_driver_id' AND type='index'
16872
+
16873
+  (0.2ms)  SELECT sql
16874
+ FROM sqlite_master
16875
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
16876
+ UNION ALL
16877
+ SELECT sql
16878
+ FROM sqlite_temp_master
16879
+ WHERE name='index_billing_versions_on_item_type_and_item_id' AND type='index'
16880
+