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 +4 -4
- data/app/models/billing/operator.rb +1 -0
- data/app/models/billing/operator_fiscal_driver_mapping.rb +7 -0
- data/app/models/billing/resource.rb +4 -0
- data/app/models/billing/tax_group.rb +1 -0
- data/app/models/billing/tax_group_fiscal_driver_mapping.rb +7 -0
- data/db/migrate/20141221201539_billing_tg_fp_mapping.rb +14 -0
- data/db/migrate/20141221233912_billing_op_fp_mapping.rb +14 -0
- data/db/migrate/20141229234928_create_billing_resources.rb +14 -0
- data/lib/billing/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +34 -1
- data/test/dummy/log/development.log +1436 -0
- data/test/fixtures/billing/resources.yml +11 -0
- data/test/models/billing/resource_test.rb +9 -0
- metadata +13 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 781b9ac74c60d10ebfa4b1e9068fe8f427668068
|
4
|
+
data.tar.gz: 51778afba6801ecb8ff99328ee3d0d0090d84d6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4ddd8cac42183574c0abac099d7e2716b0374b5e8df24e4e63a668ff5f5ab0e7ecef94c68318d373e3f66d4cdab76b6ffb76af6fae5aea506aed0f5c7ea22da
|
7
|
+
data.tar.gz: 5a9c4df4250e9f7d43609129c4edfe0f9922fcc9db5f527ec30c6a8e23266111773c0a45fbdfa33184e1795cef991a3cb8b9b49ed6890b2bb1ce95f131f0682a
|
@@ -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
|
data/lib/billing/version.rb
CHANGED
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -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:
|
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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15446
|
+
Migrating to BillingTgFpMapping (20141221201539)
|
15447
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15448
|
+
[1m[36m (0.4ms)[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
|
15449
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
15450
|
+
[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
|
15451
|
+
[1m[35m (0.1ms)[0m 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
|
+
[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
|
15460
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141221201539"]]
|
15461
|
+
[1m[36m (141.7ms)[0m [1mcommit transaction[0m
|
15462
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
15463
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
15471
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15487
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
15503
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
15519
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
15535
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15551
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15567
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15583
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15599
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15615
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15631
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15647
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15663
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15679
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15680
|
+
Migrating to BillingOpFpMapping (20141221233912)
|
15681
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15682
|
+
[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
|
15683
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
15684
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_op_fp_mappings_on_extface_driver_id" ON "billing_op_fp_mappings" ("extface_driver_id")[0m
|
15685
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_billing_op_fp_mappings_on_operator_id" ON "billing_op_fp_mappings" ("operator_id")[0m
|
15694
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141221233912"]]
|
15695
|
+
[1m[36m (190.5ms)[0m [1mcommit transaction[0m
|
15696
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
15697
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15705
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15721
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15737
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15753
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15769
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15785
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15801
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15817
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15833
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15849
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15865
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
15881
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15897
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15913
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15929
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15930
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
15931
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15939
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15955
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15971
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
15987
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16003
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16019
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16035
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16051
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16067
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16083
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16099
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16115
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16131
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16147
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16163
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16164
|
+
Migrating to CreateBillingResources (20141229234928)
|
16165
|
+
[1m[35m (0.3ms)[0m begin transaction
|
16166
|
+
[1m[36m (0.9ms)[0m [1mCREATE 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) [0m
|
16167
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141229234928"]]
|
16168
|
+
[1m[36m (127.1ms)[0m [1mcommit transaction[0m
|
16169
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
16170
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
16178
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16194
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
16210
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16226
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16242
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16258
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16274
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16290
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16306
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16322
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16338
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16354
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16370
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16386
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16402
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16403
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
16404
|
+
Migrating to CreateBillingResources (20141229234928)
|
16405
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16406
|
+
[1m[35m (0.3ms)[0m DROP TABLE "billing_resources"
|
16407
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141229234928'[0m
|
16408
|
+
[1m[35m (152.7ms)[0m commit transaction
|
16409
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16410
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16426
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16442
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16458
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16474
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16490
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16506
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16522
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16538
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16554
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16570
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16586
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16602
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16618
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
16634
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16643
|
+
Migrating to CreateBillingResources (20141229234928)
|
16644
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16645
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
16646
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141229234928"]]
|
16647
|
+
[1m[36m (187.8ms)[0m [1mcommit transaction[0m
|
16648
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
16649
|
+
[1m[36m (0.5ms)[0m [1m 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
|
+
[0m
|
16657
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
16673
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
16689
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16705
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16721
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16737
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16753
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16769
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16785
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16801
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16817
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16833
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16849
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
16865
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|