dorsale 2.3.2 → 2.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3072 @@
1
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+  (1.3ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "addressable_id" integer, "addressable_type" varchar) 
3
+  (0.9ms) CREATE TABLE "dorsale_alexandrie_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar, "file" varchar, "sender_id" integer, "sender_type" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime)
4
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_id_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "id_card_name" varchar, "entity_name" varchar, "siret" varchar, "legal_form" varchar, "capital" integer, "registration_number" varchar, "intracommunity_vat" varchar, "address1" varchar, "address2" varchar, "zip" varchar, "city" varchar, "phone" varchar, "contact_full_name" varchar, "contact_phone" varchar, "contact_address_1" varchar, "contact_address_2" varchar, "contact_zip" varchar, "contact_city" varchar, "iban" varchar, "bic_swift" varchar, "bank_name" varchar, "bank_address" varchar, "ape_naf" varchar, "custom_info_1" text, "custom_info_2" text, "custom_info_3" text, "contact_fax" varchar, "contact_email" varchar, "logo" varchar, "registration_city" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
5
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_invoice_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "invoice_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
6
+  (0.4ms) select sqlite_version(*)
7
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoice_lines_on_invoice_id" ON "dorsale_billing_machine_invoice_lines" ("invoice_id")
8
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "payment_term_id" integer, "id_card_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "advance" decimal, "balance" decimal, "unique_index" integer, "paid" boolean, "due_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_id" varchar, "commercial_discount" decimal, "comments" text) 
9
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_id" ON "dorsale_billing_machine_invoices" ("customer_id")
10
+  (0.1ms)  SELECT sql
11
+ FROM sqlite_master
12
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
13
+ UNION ALL
14
+ SELECT sql
15
+ FROM sqlite_temp_master
16
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
17
+ 
18
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_type" ON "dorsale_billing_machine_invoices" ("customer_type")
19
+  (0.1ms)  SELECT sql
20
+ FROM sqlite_master
21
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
22
+ UNION ALL
23
+ SELECT sql
24
+ FROM sqlite_temp_master
25
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
26
+ 
27
+  (0.1ms) SELECT sql
28
+ FROM sqlite_master
29
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
30
+ UNION ALL
31
+ SELECT sql
32
+ FROM sqlite_temp_master
33
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
34
+
35
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_id_card_id" ON "dorsale_billing_machine_invoices" ("id_card_id")
36
+  (0.1ms) SELECT sql
37
+ FROM sqlite_master
38
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
39
+ UNION ALL
40
+ SELECT sql
41
+ FROM sqlite_temp_master
42
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
43
+
44
+  (0.2ms)  SELECT sql
45
+ FROM sqlite_master
46
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
47
+ UNION ALL
48
+ SELECT sql
49
+ FROM sqlite_temp_master
50
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
51
+ 
52
+  (0.1ms) SELECT sql
53
+ FROM sqlite_master
54
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
55
+ UNION ALL
56
+ SELECT sql
57
+ FROM sqlite_temp_master
58
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
59
+
60
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_payment_term_id" ON "dorsale_billing_machine_invoices" ("payment_term_id")
61
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_payment_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
62
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_quotation_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quotation_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal) 
63
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotation_lines_on_quotation_id" ON "dorsale_billing_machine_quotation_lines" ("quotation_id")
64
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_quotations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "id_card_id" integer, "payment_term_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "unique_index" integer, "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "expires_at" date, "tracking_id" varchar, "commercial_discount" decimal, "state" varchar) 
65
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_id" ON "dorsale_billing_machine_quotations" ("customer_id")
66
+  (0.1ms)  SELECT sql
67
+ FROM sqlite_master
68
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
69
+ UNION ALL
70
+ SELECT sql
71
+ FROM sqlite_temp_master
72
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
73
+ 
74
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_type" ON "dorsale_billing_machine_quotations" ("customer_type")
75
+  (0.1ms)  SELECT sql
76
+ FROM sqlite_master
77
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
78
+ UNION ALL
79
+ SELECT sql
80
+ FROM sqlite_temp_master
81
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
82
+ 
83
+  (0.1ms) SELECT sql
84
+ FROM sqlite_master
85
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
86
+ UNION ALL
87
+ SELECT sql
88
+ FROM sqlite_temp_master
89
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
90
+
91
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_id_card_id" ON "dorsale_billing_machine_quotations" ("id_card_id")
92
+  (0.1ms) SELECT sql
93
+ FROM sqlite_master
94
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
95
+ UNION ALL
96
+ SELECT sql
97
+ FROM sqlite_temp_master
98
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
99
+
100
+  (0.2ms)  SELECT sql
101
+ FROM sqlite_master
102
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
103
+ UNION ALL
104
+ SELECT sql
105
+ FROM sqlite_temp_master
106
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
107
+ 
108
+  (0.1ms) SELECT sql
109
+ FROM sqlite_master
110
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
111
+ UNION ALL
112
+ SELECT sql
113
+ FROM sqlite_temp_master
114
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
115
+
116
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_payment_term_id" ON "dorsale_billing_machine_quotations" ("payment_term_id")
117
+  (1.0ms) CREATE TABLE "dorsale_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "user_type" varchar, "commentable_id" integer, "commentable_type" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar)
118
+  (1.1ms) CREATE TABLE "dorsale_customer_vault_corporations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_name" varchar, "email" text, "phone" varchar, "fax" varchar, "www" text, "legal_form" varchar, "capital" integer, "immatriculation_number_1" varchar, "immatriculation_number_2" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "european_union_vat_number" varchar) 
119
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_individuals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "short_name" varchar, "email" text, "title" varchar, "twitter" varchar, "www" text, "context" text, "phone" varchar, "fax" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "skype" varchar)
120
+  (1.1ms) CREATE TABLE "dorsale_customer_vault_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "alice_id" integer, "alice_type" varchar, "bob_id" integer, "bob_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
121
+  (1.3ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_id" ON "dorsale_customer_vault_links" ("alice_id")
122
+  (0.1ms)  SELECT sql
123
+ FROM sqlite_master
124
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
125
+ UNION ALL
126
+ SELECT sql
127
+ FROM sqlite_temp_master
128
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
129
+ 
130
+  (1.1ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_type" ON "dorsale_customer_vault_links" ("alice_type")
131
+  (0.1ms)  SELECT sql
132
+ FROM sqlite_master
133
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
134
+ UNION ALL
135
+ SELECT sql
136
+ FROM sqlite_temp_master
137
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
138
+ 
139
+  (0.1ms) SELECT sql
140
+ FROM sqlite_master
141
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
142
+ UNION ALL
143
+ SELECT sql
144
+ FROM sqlite_temp_master
145
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
146
+
147
+  (1.1ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_id" ON "dorsale_customer_vault_links" ("bob_id")
148
+  (0.1ms) SELECT sql
149
+ FROM sqlite_master
150
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
151
+ UNION ALL
152
+ SELECT sql
153
+ FROM sqlite_temp_master
154
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
155
+
156
+  (0.2ms)  SELECT sql
157
+ FROM sqlite_master
158
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
159
+ UNION ALL
160
+ SELECT sql
161
+ FROM sqlite_temp_master
162
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
163
+ 
164
+  (0.1ms) SELECT sql
165
+ FROM sqlite_master
166
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
167
+ UNION ALL
168
+ SELECT sql
169
+ FROM sqlite_temp_master
170
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
171
+
172
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_type" ON "dorsale_customer_vault_links" ("bob_type")
173
+  (1.1ms) CREATE TABLE "dorsale_expense_gun_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "code" varchar, "vat_deductible" boolean)
174
+  (1.0ms) CREATE TABLE "dorsale_expense_gun_expense_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expense_id" integer, "category_id" integer, "name" varchar, "date" date, "total_all_taxes" float, "vat" float, "company_part" float, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
175
+  (1.0ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_category_id" ON "dorsale_expense_gun_expense_lines" ("category_id")
176
+  (0.1ms)  SELECT sql
177
+ FROM sqlite_master
178
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
179
+ UNION ALL
180
+ SELECT sql
181
+ FROM sqlite_temp_master
182
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
183
+ 
184
+  (1.0ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_expense_id" ON "dorsale_expense_gun_expense_lines" ("expense_id")
185
+  (1.0ms) CREATE TABLE "dorsale_expense_gun_expenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" varchar, "date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
186
+  (1.1ms) CREATE TABLE "dorsale_flyboy_folders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "folderable_id" integer, "folderable_type" varchar, "name" varchar, "description" text, "progress" integer, "status" varchar, "tracking" varchar, "version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
187
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_id" ON "dorsale_flyboy_folders" ("folderable_id")
188
+  (0.1ms) SELECT sql
189
+ FROM sqlite_master
190
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
191
+ UNION ALL
192
+ SELECT sql
193
+ FROM sqlite_temp_master
194
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
195
+
196
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_type" ON "dorsale_flyboy_folders" ("folderable_type")
197
+  (1.1ms) CREATE TABLE "dorsale_flyboy_task_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "date" datetime, "description" text, "progress" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar, "author_id" integer)
198
+  (1.1ms) CREATE INDEX "index_dorsale_flyboy_task_comments_on_task_id" ON "dorsale_flyboy_task_comments" ("task_id")
199
+  (1.1ms) CREATE TABLE "dorsale_flyboy_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar, "name" varchar, "description" text, "progress" integer, "done" boolean, "term" date, "reminder" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_type" varchar, "owner_id" integer)
200
+  (0.9ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_id" ON "dorsale_flyboy_tasks" ("taskable_id")
201
+  (0.2ms) SELECT sql
202
+ FROM sqlite_master
203
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
204
+ UNION ALL
205
+ SELECT sql
206
+ FROM sqlite_temp_master
207
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
208
+
209
+  (1.1ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_type" ON "dorsale_flyboy_tasks" ("taskable_type")
210
+  (1.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
211
+  (1.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
212
+  (1.3ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
213
+  (0.1ms)  SELECT sql
214
+ FROM sqlite_master
215
+ WHERE name='taggings_idx' AND type='index'
216
+ UNION ALL
217
+ SELECT sql
218
+ FROM sqlite_temp_master
219
+ WHERE name='taggings_idx' AND type='index'
220
+ 
221
+  (1.0ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
222
+  (1.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0) 
223
+  (1.2ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
224
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "is_active" boolean, "avatar" varchar) 
225
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
226
+  (0.1ms)  SELECT sql
227
+ FROM sqlite_master
228
+ WHERE name='index_users_on_email' AND type='index'
229
+ UNION ALL
230
+ SELECT sql
231
+ FROM sqlite_temp_master
232
+ WHERE name='index_users_on_email' AND type='index'
233
+ 
234
+  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
235
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
236
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
237
+  (0.1ms) SELECT version FROM "schema_migrations"
238
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160125201025')
239
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616082916')
240
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081204')
241
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081205')
242
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081206')
243
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081207')
244
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081208')
245
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150803160334')
246
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
247
+  (2.7ms) DROP TABLE "dorsale_addresses"
248
+  (1.1ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "addressable_id" integer, "addressable_type" varchar)
249
+  (1.2ms) DROP TABLE "dorsale_alexandrie_attachments"
250
+  (1.0ms) CREATE TABLE "dorsale_alexandrie_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar, "file" varchar, "sender_id" integer, "sender_type" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime)
251
+  (1.1ms) DROP TABLE "dorsale_billing_machine_id_cards"
252
+  (1.5ms) CREATE TABLE "dorsale_billing_machine_id_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "id_card_name" varchar, "entity_name" varchar, "siret" varchar, "legal_form" varchar, "capital" integer, "registration_number" varchar, "intracommunity_vat" varchar, "address1" varchar, "address2" varchar, "zip" varchar, "city" varchar, "phone" varchar, "contact_full_name" varchar, "contact_phone" varchar, "contact_address_1" varchar, "contact_address_2" varchar, "contact_zip" varchar, "contact_city" varchar, "iban" varchar, "bic_swift" varchar, "bank_name" varchar, "bank_address" varchar, "ape_naf" varchar, "custom_info_1" text, "custom_info_2" text, "custom_info_3" text, "contact_fax" varchar, "contact_email" varchar, "logo" varchar, "registration_city" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
253
+  (1.2ms) DROP TABLE "dorsale_billing_machine_invoice_lines"
254
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_invoice_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "invoice_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
255
+  (0.1ms) select sqlite_version(*)
256
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_invoice_lines_on_invoice_id" ON "dorsale_billing_machine_invoice_lines" ("invoice_id")
257
+  (2.4ms) DROP TABLE "dorsale_billing_machine_invoices"
258
+  (1.3ms) CREATE TABLE "dorsale_billing_machine_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "payment_term_id" integer, "id_card_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "advance" decimal, "balance" decimal, "unique_index" integer, "paid" boolean, "due_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_id" varchar, "commercial_discount" decimal, "comments" text)
259
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_id" ON "dorsale_billing_machine_invoices" ("customer_id")
260
+  (0.1ms) SELECT sql
261
+ FROM sqlite_master
262
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
263
+ UNION ALL
264
+ SELECT sql
265
+ FROM sqlite_temp_master
266
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
267
+
268
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_type" ON "dorsale_billing_machine_invoices" ("customer_type")
269
+  (0.2ms) SELECT sql
270
+ FROM sqlite_master
271
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
272
+ UNION ALL
273
+ SELECT sql
274
+ FROM sqlite_temp_master
275
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
276
+
277
+  (0.3ms)  SELECT sql
278
+ FROM sqlite_master
279
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
280
+ UNION ALL
281
+ SELECT sql
282
+ FROM sqlite_temp_master
283
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
284
+ 
285
+  (1.5ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_id_card_id" ON "dorsale_billing_machine_invoices" ("id_card_id")
286
+  (0.1ms)  SELECT sql
287
+ FROM sqlite_master
288
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
289
+ UNION ALL
290
+ SELECT sql
291
+ FROM sqlite_temp_master
292
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
293
+ 
294
+  (0.1ms) SELECT sql
295
+ FROM sqlite_master
296
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
297
+ UNION ALL
298
+ SELECT sql
299
+ FROM sqlite_temp_master
300
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
301
+
302
+  (0.1ms)  SELECT sql
303
+ FROM sqlite_master
304
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
305
+ UNION ALL
306
+ SELECT sql
307
+ FROM sqlite_temp_master
308
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
309
+ 
310
+  (1.2ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_payment_term_id" ON "dorsale_billing_machine_invoices" ("payment_term_id")
311
+  (0.9ms) DROP TABLE "dorsale_billing_machine_payment_terms"
312
+  (0.9ms) CREATE TABLE "dorsale_billing_machine_payment_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
313
+  (1.0ms) DROP TABLE "dorsale_billing_machine_quotation_lines"
314
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_quotation_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quotation_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
315
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_quotation_lines_on_quotation_id" ON "dorsale_billing_machine_quotation_lines" ("quotation_id")
316
+  (1.3ms) DROP TABLE "dorsale_billing_machine_quotations"
317
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_quotations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "id_card_id" integer, "payment_term_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "unique_index" integer, "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "expires_at" date, "tracking_id" varchar, "commercial_discount" decimal, "state" varchar) 
318
+  (1.2ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_id" ON "dorsale_billing_machine_quotations" ("customer_id")
319
+  (0.1ms)  SELECT sql
320
+ FROM sqlite_master
321
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
322
+ UNION ALL
323
+ SELECT sql
324
+ FROM sqlite_temp_master
325
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
326
+ 
327
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_type" ON "dorsale_billing_machine_quotations" ("customer_type")
328
+  (0.2ms)  SELECT sql
329
+ FROM sqlite_master
330
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
331
+ UNION ALL
332
+ SELECT sql
333
+ FROM sqlite_temp_master
334
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
335
+ 
336
+  (0.3ms) SELECT sql
337
+ FROM sqlite_master
338
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
339
+ UNION ALL
340
+ SELECT sql
341
+ FROM sqlite_temp_master
342
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
343
+
344
+  (1.3ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_id_card_id" ON "dorsale_billing_machine_quotations" ("id_card_id")
345
+  (0.2ms) SELECT sql
346
+ FROM sqlite_master
347
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
348
+ UNION ALL
349
+ SELECT sql
350
+ FROM sqlite_temp_master
351
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
352
+
353
+  (0.2ms)  SELECT sql
354
+ FROM sqlite_master
355
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
356
+ UNION ALL
357
+ SELECT sql
358
+ FROM sqlite_temp_master
359
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
360
+ 
361
+  (0.2ms) SELECT sql
362
+ FROM sqlite_master
363
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
364
+ UNION ALL
365
+ SELECT sql
366
+ FROM sqlite_temp_master
367
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
368
+
369
+  (1.2ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_payment_term_id" ON "dorsale_billing_machine_quotations" ("payment_term_id")
370
+  (1.5ms) DROP TABLE "dorsale_comments"
371
+  (1.3ms) CREATE TABLE "dorsale_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "user_type" varchar, "commentable_id" integer, "commentable_type" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar) 
372
+  (1.1ms) DROP TABLE "dorsale_customer_vault_corporations"
373
+  (2.3ms) CREATE TABLE "dorsale_customer_vault_corporations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_name" varchar, "email" text, "phone" varchar, "fax" varchar, "www" text, "legal_form" varchar, "capital" integer, "immatriculation_number_1" varchar, "immatriculation_number_2" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "european_union_vat_number" varchar) 
374
+  (1.0ms) DROP TABLE "dorsale_customer_vault_individuals"
375
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_individuals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "short_name" varchar, "email" text, "title" varchar, "twitter" varchar, "www" text, "context" text, "phone" varchar, "fax" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "skype" varchar) 
376
+  (1.3ms) DROP TABLE "dorsale_customer_vault_links"
377
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "alice_id" integer, "alice_type" varchar, "bob_id" integer, "bob_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
378
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_id" ON "dorsale_customer_vault_links" ("alice_id")
379
+  (0.1ms)  SELECT sql
380
+ FROM sqlite_master
381
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
382
+ UNION ALL
383
+ SELECT sql
384
+ FROM sqlite_temp_master
385
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
386
+ 
387
+  (1.1ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_type" ON "dorsale_customer_vault_links" ("alice_type")
388
+  (0.1ms)  SELECT sql
389
+ FROM sqlite_master
390
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
391
+ UNION ALL
392
+ SELECT sql
393
+ FROM sqlite_temp_master
394
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
395
+ 
396
+  (0.1ms) SELECT sql
397
+ FROM sqlite_master
398
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
399
+ UNION ALL
400
+ SELECT sql
401
+ FROM sqlite_temp_master
402
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
403
+
404
+  (1.3ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_id" ON "dorsale_customer_vault_links" ("bob_id")
405
+  (0.2ms) SELECT sql
406
+ FROM sqlite_master
407
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
408
+ UNION ALL
409
+ SELECT sql
410
+ FROM sqlite_temp_master
411
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
412
+
413
+  (0.1ms)  SELECT sql
414
+ FROM sqlite_master
415
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
416
+ UNION ALL
417
+ SELECT sql
418
+ FROM sqlite_temp_master
419
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
420
+ 
421
+  (0.2ms) SELECT sql
422
+ FROM sqlite_master
423
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
424
+ UNION ALL
425
+ SELECT sql
426
+ FROM sqlite_temp_master
427
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
428
+
429
+  (1.9ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_type" ON "dorsale_customer_vault_links" ("bob_type")
430
+  (1.4ms) DROP TABLE "dorsale_expense_gun_categories"
431
+  (1.8ms) CREATE TABLE "dorsale_expense_gun_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "code" varchar, "vat_deductible" boolean) 
432
+  (1.7ms) DROP TABLE "dorsale_expense_gun_expense_lines"
433
+  (1.3ms) CREATE TABLE "dorsale_expense_gun_expense_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expense_id" integer, "category_id" integer, "name" varchar, "date" date, "total_all_taxes" float, "vat" float, "company_part" float, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
434
+  (1.1ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_category_id" ON "dorsale_expense_gun_expense_lines" ("category_id")
435
+  (0.1ms)  SELECT sql
436
+ FROM sqlite_master
437
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
438
+ UNION ALL
439
+ SELECT sql
440
+ FROM sqlite_temp_master
441
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
442
+ 
443
+  (1.1ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_expense_id" ON "dorsale_expense_gun_expense_lines" ("expense_id")
444
+  (1.1ms) DROP TABLE "dorsale_expense_gun_expenses"
445
+  (1.4ms) CREATE TABLE "dorsale_expense_gun_expenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" varchar, "date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
446
+  (1.3ms) DROP TABLE "dorsale_flyboy_folders"
447
+  (1.1ms) CREATE TABLE "dorsale_flyboy_folders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "folderable_id" integer, "folderable_type" varchar, "name" varchar, "description" text, "progress" integer, "status" varchar, "tracking" varchar, "version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
448
+  (0.9ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_id" ON "dorsale_flyboy_folders" ("folderable_id")
449
+  (0.1ms) SELECT sql
450
+ FROM sqlite_master
451
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
452
+ UNION ALL
453
+ SELECT sql
454
+ FROM sqlite_temp_master
455
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
456
+
457
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_type" ON "dorsale_flyboy_folders" ("folderable_type")
458
+  (1.1ms) DROP TABLE "dorsale_flyboy_task_comments"
459
+  (1.1ms) CREATE TABLE "dorsale_flyboy_task_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "date" datetime, "description" text, "progress" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar, "author_id" integer) 
460
+  (1.1ms) CREATE INDEX "index_dorsale_flyboy_task_comments_on_task_id" ON "dorsale_flyboy_task_comments" ("task_id")
461
+  (1.6ms) DROP TABLE "dorsale_flyboy_tasks"
462
+  (1.7ms) CREATE TABLE "dorsale_flyboy_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar, "name" varchar, "description" text, "progress" integer, "done" boolean, "term" date, "reminder" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_type" varchar, "owner_id" integer)
463
+  (1.5ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_id" ON "dorsale_flyboy_tasks" ("taskable_id")
464
+  (0.2ms) SELECT sql
465
+ FROM sqlite_master
466
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
467
+ UNION ALL
468
+ SELECT sql
469
+ FROM sqlite_temp_master
470
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
471
+
472
+  (1.4ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_type" ON "dorsale_flyboy_tasks" ("taskable_type")
473
+  (1.0ms) DROP TABLE "dummy_models"
474
+  (1.4ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
475
+  (1.4ms) DROP TABLE "taggings"
476
+  (1.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
477
+  (1.7ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
478
+  (0.1ms)  SELECT sql
479
+ FROM sqlite_master
480
+ WHERE name='taggings_idx' AND type='index'
481
+ UNION ALL
482
+ SELECT sql
483
+ FROM sqlite_temp_master
484
+ WHERE name='taggings_idx' AND type='index'
485
+ 
486
+  (1.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
487
+  (2.3ms) DROP TABLE "tags"
488
+  (1.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)
489
+  (1.0ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
490
+  (1.3ms) DROP TABLE "users"
491
+  (1.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "is_active" boolean, "avatar" varchar) 
492
+  (1.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
493
+  (0.3ms)  SELECT sql
494
+ FROM sqlite_master
495
+ WHERE name='index_users_on_email' AND type='index'
496
+ UNION ALL
497
+ SELECT sql
498
+ FROM sqlite_temp_master
499
+ WHERE name='index_users_on_email' AND type='index'
500
+ 
501
+  (1.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
502
+  (0.1ms) SELECT version FROM "schema_migrations"
503
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
504
+  (2.6ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "addressable_id" integer, "addressable_type" varchar) 
505
+  (1.0ms) CREATE TABLE "dorsale_alexandrie_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar, "file" varchar, "sender_id" integer, "sender_type" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime)
506
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_id_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "id_card_name" varchar, "entity_name" varchar, "siret" varchar, "legal_form" varchar, "capital" integer, "registration_number" varchar, "intracommunity_vat" varchar, "address1" varchar, "address2" varchar, "zip" varchar, "city" varchar, "phone" varchar, "contact_full_name" varchar, "contact_phone" varchar, "contact_address_1" varchar, "contact_address_2" varchar, "contact_zip" varchar, "contact_city" varchar, "iban" varchar, "bic_swift" varchar, "bank_name" varchar, "bank_address" varchar, "ape_naf" varchar, "custom_info_1" text, "custom_info_2" text, "custom_info_3" text, "contact_fax" varchar, "contact_email" varchar, "logo" varchar, "registration_city" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
507
+  (0.9ms) CREATE TABLE "dorsale_billing_machine_invoice_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "invoice_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
508
+  (0.1ms) select sqlite_version(*)
509
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoice_lines_on_invoice_id" ON "dorsale_billing_machine_invoice_lines" ("invoice_id")
510
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "payment_term_id" integer, "id_card_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "advance" decimal, "balance" decimal, "unique_index" integer, "paid" boolean, "due_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_id" varchar, "commercial_discount" decimal, "comments" text) 
511
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_id" ON "dorsale_billing_machine_invoices" ("customer_id")
512
+  (0.1ms)  SELECT sql
513
+ FROM sqlite_master
514
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
515
+ UNION ALL
516
+ SELECT sql
517
+ FROM sqlite_temp_master
518
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
519
+ 
520
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_type" ON "dorsale_billing_machine_invoices" ("customer_type")
521
+  (0.1ms)  SELECT sql
522
+ FROM sqlite_master
523
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
524
+ UNION ALL
525
+ SELECT sql
526
+ FROM sqlite_temp_master
527
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
528
+ 
529
+  (0.1ms) SELECT sql
530
+ FROM sqlite_master
531
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
532
+ UNION ALL
533
+ SELECT sql
534
+ FROM sqlite_temp_master
535
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
536
+
537
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_id_card_id" ON "dorsale_billing_machine_invoices" ("id_card_id")
538
+  (0.1ms) SELECT sql
539
+ FROM sqlite_master
540
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
541
+ UNION ALL
542
+ SELECT sql
543
+ FROM sqlite_temp_master
544
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
545
+
546
+  (0.1ms)  SELECT sql
547
+ FROM sqlite_master
548
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
549
+ UNION ALL
550
+ SELECT sql
551
+ FROM sqlite_temp_master
552
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
553
+ 
554
+  (0.1ms) SELECT sql
555
+ FROM sqlite_master
556
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
557
+ UNION ALL
558
+ SELECT sql
559
+ FROM sqlite_temp_master
560
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
561
+
562
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_payment_term_id" ON "dorsale_billing_machine_invoices" ("payment_term_id")
563
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_payment_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
564
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_quotation_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quotation_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal) 
565
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotation_lines_on_quotation_id" ON "dorsale_billing_machine_quotation_lines" ("quotation_id")
566
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_quotations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "id_card_id" integer, "payment_term_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "unique_index" integer, "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "expires_at" date, "tracking_id" varchar, "commercial_discount" decimal, "state" varchar) 
567
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_id" ON "dorsale_billing_machine_quotations" ("customer_id")
568
+  (0.1ms)  SELECT sql
569
+ FROM sqlite_master
570
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
571
+ UNION ALL
572
+ SELECT sql
573
+ FROM sqlite_temp_master
574
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
575
+ 
576
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_type" ON "dorsale_billing_machine_quotations" ("customer_type")
577
+  (0.1ms)  SELECT sql
578
+ FROM sqlite_master
579
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
580
+ UNION ALL
581
+ SELECT sql
582
+ FROM sqlite_temp_master
583
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
584
+ 
585
+  (0.1ms) SELECT sql
586
+ FROM sqlite_master
587
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
588
+ UNION ALL
589
+ SELECT sql
590
+ FROM sqlite_temp_master
591
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
592
+
593
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_id_card_id" ON "dorsale_billing_machine_quotations" ("id_card_id")
594
+  (0.1ms) SELECT sql
595
+ FROM sqlite_master
596
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
597
+ UNION ALL
598
+ SELECT sql
599
+ FROM sqlite_temp_master
600
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
601
+
602
+  (0.1ms)  SELECT sql
603
+ FROM sqlite_master
604
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
605
+ UNION ALL
606
+ SELECT sql
607
+ FROM sqlite_temp_master
608
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
609
+ 
610
+  (0.1ms) SELECT sql
611
+ FROM sqlite_master
612
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
613
+ UNION ALL
614
+ SELECT sql
615
+ FROM sqlite_temp_master
616
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
617
+
618
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_payment_term_id" ON "dorsale_billing_machine_quotations" ("payment_term_id")
619
+  (1.1ms) CREATE TABLE "dorsale_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "user_type" varchar, "commentable_id" integer, "commentable_type" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar)
620
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_corporations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_name" varchar, "email" text, "phone" varchar, "fax" varchar, "www" text, "legal_form" varchar, "capital" integer, "immatriculation_number_1" varchar, "immatriculation_number_2" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "european_union_vat_number" varchar) 
621
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_individuals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "short_name" varchar, "email" text, "title" varchar, "twitter" varchar, "www" text, "context" text, "phone" varchar, "fax" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "skype" varchar)
622
+  (0.9ms) CREATE TABLE "dorsale_customer_vault_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "alice_id" integer, "alice_type" varchar, "bob_id" integer, "bob_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
623
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_id" ON "dorsale_customer_vault_links" ("alice_id")
624
+  (0.1ms)  SELECT sql
625
+ FROM sqlite_master
626
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
627
+ UNION ALL
628
+ SELECT sql
629
+ FROM sqlite_temp_master
630
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
631
+ 
632
+  (1.1ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_type" ON "dorsale_customer_vault_links" ("alice_type")
633
+  (0.1ms)  SELECT sql
634
+ FROM sqlite_master
635
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
636
+ UNION ALL
637
+ SELECT sql
638
+ FROM sqlite_temp_master
639
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
640
+ 
641
+  (0.1ms) SELECT sql
642
+ FROM sqlite_master
643
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
644
+ UNION ALL
645
+ SELECT sql
646
+ FROM sqlite_temp_master
647
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
648
+
649
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_id" ON "dorsale_customer_vault_links" ("bob_id")
650
+  (0.1ms) SELECT sql
651
+ FROM sqlite_master
652
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
653
+ UNION ALL
654
+ SELECT sql
655
+ FROM sqlite_temp_master
656
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
657
+
658
+  (0.1ms)  SELECT sql
659
+ FROM sqlite_master
660
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
661
+ UNION ALL
662
+ SELECT sql
663
+ FROM sqlite_temp_master
664
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
665
+ 
666
+  (0.1ms) SELECT sql
667
+ FROM sqlite_master
668
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
669
+ UNION ALL
670
+ SELECT sql
671
+ FROM sqlite_temp_master
672
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
673
+
674
+  (0.9ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_type" ON "dorsale_customer_vault_links" ("bob_type")
675
+  (1.0ms) CREATE TABLE "dorsale_expense_gun_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "code" varchar, "vat_deductible" boolean)
676
+  (0.9ms) CREATE TABLE "dorsale_expense_gun_expense_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expense_id" integer, "category_id" integer, "name" varchar, "date" date, "total_all_taxes" float, "vat" float, "company_part" float, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
677
+  (0.9ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_category_id" ON "dorsale_expense_gun_expense_lines" ("category_id")
678
+  (0.1ms)  SELECT sql
679
+ FROM sqlite_master
680
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
681
+ UNION ALL
682
+ SELECT sql
683
+ FROM sqlite_temp_master
684
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
685
+ 
686
+  (1.0ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_expense_id" ON "dorsale_expense_gun_expense_lines" ("expense_id")
687
+  (0.9ms) CREATE TABLE "dorsale_expense_gun_expenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" varchar, "date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
688
+  (1.1ms) CREATE TABLE "dorsale_flyboy_folders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "folderable_id" integer, "folderable_type" varchar, "name" varchar, "description" text, "progress" integer, "status" varchar, "tracking" varchar, "version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
689
+  (0.9ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_id" ON "dorsale_flyboy_folders" ("folderable_id")
690
+  (0.1ms) SELECT sql
691
+ FROM sqlite_master
692
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
693
+ UNION ALL
694
+ SELECT sql
695
+ FROM sqlite_temp_master
696
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
697
+
698
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_type" ON "dorsale_flyboy_folders" ("folderable_type")
699
+  (1.0ms) CREATE TABLE "dorsale_flyboy_task_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "date" datetime, "description" text, "progress" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar, "author_id" integer)
700
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_task_comments_on_task_id" ON "dorsale_flyboy_task_comments" ("task_id")
701
+  (1.0ms) CREATE TABLE "dorsale_flyboy_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar, "name" varchar, "description" text, "progress" integer, "done" boolean, "term" date, "reminder" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_type" varchar, "owner_id" integer)
702
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_id" ON "dorsale_flyboy_tasks" ("taskable_id")
703
+  (0.1ms) SELECT sql
704
+ FROM sqlite_master
705
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
706
+ UNION ALL
707
+ SELECT sql
708
+ FROM sqlite_temp_master
709
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
710
+
711
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_type" ON "dorsale_flyboy_tasks" ("taskable_type")
712
+  (1.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
713
+  (0.9ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
714
+  (1.0ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
715
+  (0.1ms)  SELECT sql
716
+ FROM sqlite_master
717
+ WHERE name='taggings_idx' AND type='index'
718
+ UNION ALL
719
+ SELECT sql
720
+ FROM sqlite_temp_master
721
+ WHERE name='taggings_idx' AND type='index'
722
+ 
723
+  (1.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
724
+  (1.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0) 
725
+  (1.0ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
726
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "is_active" boolean, "avatar" varchar) 
727
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
728
+  (0.1ms)  SELECT sql
729
+ FROM sqlite_master
730
+ WHERE name='index_users_on_email' AND type='index'
731
+ UNION ALL
732
+ SELECT sql
733
+ FROM sqlite_temp_master
734
+ WHERE name='index_users_on_email' AND type='index'
735
+ 
736
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
737
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
738
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
739
+  (0.1ms) SELECT version FROM "schema_migrations"
740
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160125201025')
741
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616082916')
742
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081204')
743
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081205')
744
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081206')
745
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081207')
746
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081208')
747
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150803160334')
748
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
749
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
750
+  (3.1ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "addressable_id" integer, "addressable_type" varchar) 
751
+  (1.0ms) CREATE TABLE "dorsale_alexandrie_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar, "file" varchar, "sender_id" integer, "sender_type" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime)
752
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_id_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "id_card_name" varchar, "entity_name" varchar, "siret" varchar, "legal_form" varchar, "capital" integer, "registration_number" varchar, "intracommunity_vat" varchar, "address1" varchar, "address2" varchar, "zip" varchar, "city" varchar, "phone" varchar, "contact_full_name" varchar, "contact_phone" varchar, "contact_address_1" varchar, "contact_address_2" varchar, "contact_zip" varchar, "contact_city" varchar, "iban" varchar, "bic_swift" varchar, "bank_name" varchar, "bank_address" varchar, "ape_naf" varchar, "custom_info_1" text, "custom_info_2" text, "custom_info_3" text, "contact_fax" varchar, "contact_email" varchar, "logo" varchar, "registration_city" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
753
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_invoice_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "invoice_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
754
+  (0.1ms) select sqlite_version(*)
755
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoice_lines_on_invoice_id" ON "dorsale_billing_machine_invoice_lines" ("invoice_id")
756
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "payment_term_id" integer, "id_card_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "advance" decimal, "balance" decimal, "unique_index" integer, "paid" boolean, "due_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_id" varchar, "commercial_discount" decimal, "comments" text) 
757
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_id" ON "dorsale_billing_machine_invoices" ("customer_id")
758
+  (0.1ms)  SELECT sql
759
+ FROM sqlite_master
760
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
761
+ UNION ALL
762
+ SELECT sql
763
+ FROM sqlite_temp_master
764
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
765
+ 
766
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_type" ON "dorsale_billing_machine_invoices" ("customer_type")
767
+  (0.1ms)  SELECT sql
768
+ FROM sqlite_master
769
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
770
+ UNION ALL
771
+ SELECT sql
772
+ FROM sqlite_temp_master
773
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
774
+ 
775
+  (0.1ms) SELECT sql
776
+ FROM sqlite_master
777
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
778
+ UNION ALL
779
+ SELECT sql
780
+ FROM sqlite_temp_master
781
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
782
+
783
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_id_card_id" ON "dorsale_billing_machine_invoices" ("id_card_id")
784
+  (0.1ms) SELECT sql
785
+ FROM sqlite_master
786
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
787
+ UNION ALL
788
+ SELECT sql
789
+ FROM sqlite_temp_master
790
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
791
+
792
+  (0.1ms)  SELECT sql
793
+ FROM sqlite_master
794
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
795
+ UNION ALL
796
+ SELECT sql
797
+ FROM sqlite_temp_master
798
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
799
+ 
800
+  (0.1ms) SELECT sql
801
+ FROM sqlite_master
802
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
803
+ UNION ALL
804
+ SELECT sql
805
+ FROM sqlite_temp_master
806
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
807
+
808
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_payment_term_id" ON "dorsale_billing_machine_invoices" ("payment_term_id")
809
+  (0.9ms) CREATE TABLE "dorsale_billing_machine_payment_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
810
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_quotation_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quotation_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal) 
811
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotation_lines_on_quotation_id" ON "dorsale_billing_machine_quotation_lines" ("quotation_id")
812
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_quotations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "id_card_id" integer, "payment_term_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "unique_index" integer, "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "expires_at" date, "tracking_id" varchar, "commercial_discount" decimal, "state" varchar) 
813
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_id" ON "dorsale_billing_machine_quotations" ("customer_id")
814
+  (0.1ms)  SELECT sql
815
+ FROM sqlite_master
816
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
817
+ UNION ALL
818
+ SELECT sql
819
+ FROM sqlite_temp_master
820
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
821
+ 
822
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_type" ON "dorsale_billing_machine_quotations" ("customer_type")
823
+  (0.1ms)  SELECT sql
824
+ FROM sqlite_master
825
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
826
+ UNION ALL
827
+ SELECT sql
828
+ FROM sqlite_temp_master
829
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
830
+ 
831
+  (0.1ms) SELECT sql
832
+ FROM sqlite_master
833
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
834
+ UNION ALL
835
+ SELECT sql
836
+ FROM sqlite_temp_master
837
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
838
+
839
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_id_card_id" ON "dorsale_billing_machine_quotations" ("id_card_id")
840
+  (0.1ms) SELECT sql
841
+ FROM sqlite_master
842
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
843
+ UNION ALL
844
+ SELECT sql
845
+ FROM sqlite_temp_master
846
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
847
+
848
+  (0.1ms)  SELECT sql
849
+ FROM sqlite_master
850
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
851
+ UNION ALL
852
+ SELECT sql
853
+ FROM sqlite_temp_master
854
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
855
+ 
856
+  (0.1ms) SELECT sql
857
+ FROM sqlite_master
858
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
859
+ UNION ALL
860
+ SELECT sql
861
+ FROM sqlite_temp_master
862
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
863
+
864
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_payment_term_id" ON "dorsale_billing_machine_quotations" ("payment_term_id")
865
+  (1.0ms) CREATE TABLE "dorsale_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "user_type" varchar, "commentable_id" integer, "commentable_type" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar)
866
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_corporations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_name" varchar, "email" text, "phone" varchar, "fax" varchar, "www" text, "legal_form" varchar, "capital" integer, "immatriculation_number_1" varchar, "immatriculation_number_2" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "european_union_vat_number" varchar) 
867
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_individuals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "short_name" varchar, "email" text, "title" varchar, "twitter" varchar, "www" text, "context" text, "phone" varchar, "fax" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "skype" varchar)
868
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "alice_id" integer, "alice_type" varchar, "bob_id" integer, "bob_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
869
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_id" ON "dorsale_customer_vault_links" ("alice_id")
870
+  (0.1ms)  SELECT sql
871
+ FROM sqlite_master
872
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
873
+ UNION ALL
874
+ SELECT sql
875
+ FROM sqlite_temp_master
876
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
877
+ 
878
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_type" ON "dorsale_customer_vault_links" ("alice_type")
879
+  (0.1ms)  SELECT sql
880
+ FROM sqlite_master
881
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
882
+ UNION ALL
883
+ SELECT sql
884
+ FROM sqlite_temp_master
885
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
886
+ 
887
+  (0.1ms) SELECT sql
888
+ FROM sqlite_master
889
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
890
+ UNION ALL
891
+ SELECT sql
892
+ FROM sqlite_temp_master
893
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
894
+
895
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_id" ON "dorsale_customer_vault_links" ("bob_id")
896
+  (0.1ms) SELECT sql
897
+ FROM sqlite_master
898
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
899
+ UNION ALL
900
+ SELECT sql
901
+ FROM sqlite_temp_master
902
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
903
+
904
+  (0.1ms)  SELECT sql
905
+ FROM sqlite_master
906
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
907
+ UNION ALL
908
+ SELECT sql
909
+ FROM sqlite_temp_master
910
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
911
+ 
912
+  (0.1ms) SELECT sql
913
+ FROM sqlite_master
914
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
915
+ UNION ALL
916
+ SELECT sql
917
+ FROM sqlite_temp_master
918
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
919
+
920
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_type" ON "dorsale_customer_vault_links" ("bob_type")
921
+  (0.9ms) CREATE TABLE "dorsale_expense_gun_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "code" varchar, "vat_deductible" boolean)
922
+  (0.9ms) CREATE TABLE "dorsale_expense_gun_expense_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expense_id" integer, "category_id" integer, "name" varchar, "date" date, "total_all_taxes" float, "vat" float, "company_part" float, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
923
+  (1.1ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_category_id" ON "dorsale_expense_gun_expense_lines" ("category_id")
924
+  (0.1ms)  SELECT sql
925
+ FROM sqlite_master
926
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
927
+ UNION ALL
928
+ SELECT sql
929
+ FROM sqlite_temp_master
930
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
931
+ 
932
+  (0.9ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_expense_id" ON "dorsale_expense_gun_expense_lines" ("expense_id")
933
+  (1.1ms) CREATE TABLE "dorsale_expense_gun_expenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" varchar, "date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
934
+  (1.2ms) CREATE TABLE "dorsale_flyboy_folders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "folderable_id" integer, "folderable_type" varchar, "name" varchar, "description" text, "progress" integer, "status" varchar, "tracking" varchar, "version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
935
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_id" ON "dorsale_flyboy_folders" ("folderable_id")
936
+  (0.1ms) SELECT sql
937
+ FROM sqlite_master
938
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
939
+ UNION ALL
940
+ SELECT sql
941
+ FROM sqlite_temp_master
942
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
943
+
944
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_type" ON "dorsale_flyboy_folders" ("folderable_type")
945
+  (1.0ms) CREATE TABLE "dorsale_flyboy_task_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "date" datetime, "description" text, "progress" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar, "author_id" integer)
946
+  (0.9ms) CREATE INDEX "index_dorsale_flyboy_task_comments_on_task_id" ON "dorsale_flyboy_task_comments" ("task_id")
947
+  (1.2ms) CREATE TABLE "dorsale_flyboy_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar, "name" varchar, "description" text, "progress" integer, "done" boolean, "term" date, "reminder" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_type" varchar, "owner_id" integer)
948
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_id" ON "dorsale_flyboy_tasks" ("taskable_id")
949
+  (0.1ms) SELECT sql
950
+ FROM sqlite_master
951
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
952
+ UNION ALL
953
+ SELECT sql
954
+ FROM sqlite_temp_master
955
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
956
+
957
+  (1.2ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_type" ON "dorsale_flyboy_tasks" ("taskable_type")
958
+  (0.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
959
+  (0.9ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
960
+  (0.8ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
961
+  (0.1ms)  SELECT sql
962
+ FROM sqlite_master
963
+ WHERE name='taggings_idx' AND type='index'
964
+ UNION ALL
965
+ SELECT sql
966
+ FROM sqlite_temp_master
967
+ WHERE name='taggings_idx' AND type='index'
968
+ 
969
+  (1.0ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
970
+  (1.1ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0) 
971
+  (1.0ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
972
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "is_active" boolean, "avatar" varchar) 
973
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
974
+  (0.1ms)  SELECT sql
975
+ FROM sqlite_master
976
+ WHERE name='index_users_on_email' AND type='index'
977
+ UNION ALL
978
+ SELECT sql
979
+ FROM sqlite_temp_master
980
+ WHERE name='index_users_on_email' AND type='index'
981
+ 
982
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
983
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
984
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
985
+  (0.1ms) SELECT version FROM "schema_migrations"
986
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160125201025')
987
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616082916')
988
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081204')
989
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081205')
990
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081206')
991
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081207')
992
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081208')
993
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150803160334')
994
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
995
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
996
+  (2.4ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "addressable_id" integer, "addressable_type" varchar) 
997
+  (1.0ms) CREATE TABLE "dorsale_alexandrie_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar, "file" varchar, "sender_id" integer, "sender_type" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime)
998
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_id_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "id_card_name" varchar, "entity_name" varchar, "siret" varchar, "legal_form" varchar, "capital" integer, "registration_number" varchar, "intracommunity_vat" varchar, "address1" varchar, "address2" varchar, "zip" varchar, "city" varchar, "phone" varchar, "contact_full_name" varchar, "contact_phone" varchar, "contact_address_1" varchar, "contact_address_2" varchar, "contact_zip" varchar, "contact_city" varchar, "iban" varchar, "bic_swift" varchar, "bank_name" varchar, "bank_address" varchar, "ape_naf" varchar, "custom_info_1" text, "custom_info_2" text, "custom_info_3" text, "contact_fax" varchar, "contact_email" varchar, "logo" varchar, "registration_city" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
999
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_invoice_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "invoice_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
1000
+  (0.1ms) select sqlite_version(*)
1001
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoice_lines_on_invoice_id" ON "dorsale_billing_machine_invoice_lines" ("invoice_id")
1002
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "payment_term_id" integer, "id_card_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "advance" decimal, "balance" decimal, "unique_index" integer, "paid" boolean, "due_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_id" varchar, "commercial_discount" decimal, "comments" text) 
1003
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_id" ON "dorsale_billing_machine_invoices" ("customer_id")
1004
+  (0.1ms)  SELECT sql
1005
+ FROM sqlite_master
1006
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1007
+ UNION ALL
1008
+ SELECT sql
1009
+ FROM sqlite_temp_master
1010
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1011
+ 
1012
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_type" ON "dorsale_billing_machine_invoices" ("customer_type")
1013
+  (0.1ms)  SELECT sql
1014
+ FROM sqlite_master
1015
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1016
+ UNION ALL
1017
+ SELECT sql
1018
+ FROM sqlite_temp_master
1019
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1020
+ 
1021
+  (0.1ms) SELECT sql
1022
+ FROM sqlite_master
1023
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1024
+ UNION ALL
1025
+ SELECT sql
1026
+ FROM sqlite_temp_master
1027
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1028
+
1029
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_id_card_id" ON "dorsale_billing_machine_invoices" ("id_card_id")
1030
+  (0.1ms) SELECT sql
1031
+ FROM sqlite_master
1032
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
1033
+ UNION ALL
1034
+ SELECT sql
1035
+ FROM sqlite_temp_master
1036
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
1037
+
1038
+  (0.1ms)  SELECT sql
1039
+ FROM sqlite_master
1040
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1041
+ UNION ALL
1042
+ SELECT sql
1043
+ FROM sqlite_temp_master
1044
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1045
+ 
1046
+  (0.1ms) SELECT sql
1047
+ FROM sqlite_master
1048
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1049
+ UNION ALL
1050
+ SELECT sql
1051
+ FROM sqlite_temp_master
1052
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1053
+
1054
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_payment_term_id" ON "dorsale_billing_machine_invoices" ("payment_term_id")
1055
+  (0.9ms) CREATE TABLE "dorsale_billing_machine_payment_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1056
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_quotation_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quotation_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal) 
1057
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotation_lines_on_quotation_id" ON "dorsale_billing_machine_quotation_lines" ("quotation_id")
1058
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_quotations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "id_card_id" integer, "payment_term_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "unique_index" integer, "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "expires_at" date, "tracking_id" varchar, "commercial_discount" decimal, "state" varchar) 
1059
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_id" ON "dorsale_billing_machine_quotations" ("customer_id")
1060
+  (0.1ms)  SELECT sql
1061
+ FROM sqlite_master
1062
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1063
+ UNION ALL
1064
+ SELECT sql
1065
+ FROM sqlite_temp_master
1066
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1067
+ 
1068
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_type" ON "dorsale_billing_machine_quotations" ("customer_type")
1069
+  (0.1ms)  SELECT sql
1070
+ FROM sqlite_master
1071
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1072
+ UNION ALL
1073
+ SELECT sql
1074
+ FROM sqlite_temp_master
1075
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1076
+ 
1077
+  (0.1ms) SELECT sql
1078
+ FROM sqlite_master
1079
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1080
+ UNION ALL
1081
+ SELECT sql
1082
+ FROM sqlite_temp_master
1083
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1084
+
1085
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_id_card_id" ON "dorsale_billing_machine_quotations" ("id_card_id")
1086
+  (0.1ms) SELECT sql
1087
+ FROM sqlite_master
1088
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
1089
+ UNION ALL
1090
+ SELECT sql
1091
+ FROM sqlite_temp_master
1092
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
1093
+
1094
+  (0.1ms)  SELECT sql
1095
+ FROM sqlite_master
1096
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1097
+ UNION ALL
1098
+ SELECT sql
1099
+ FROM sqlite_temp_master
1100
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1101
+ 
1102
+  (0.1ms) SELECT sql
1103
+ FROM sqlite_master
1104
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1105
+ UNION ALL
1106
+ SELECT sql
1107
+ FROM sqlite_temp_master
1108
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1109
+
1110
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_payment_term_id" ON "dorsale_billing_machine_quotations" ("payment_term_id")
1111
+  (1.2ms) CREATE TABLE "dorsale_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "user_type" varchar, "commentable_id" integer, "commentable_type" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar)
1112
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_corporations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_name" varchar, "email" text, "phone" varchar, "fax" varchar, "www" text, "legal_form" varchar, "capital" integer, "immatriculation_number_1" varchar, "immatriculation_number_2" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "european_union_vat_number" varchar) 
1113
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_individuals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "short_name" varchar, "email" text, "title" varchar, "twitter" varchar, "www" text, "context" text, "phone" varchar, "fax" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "skype" varchar)
1114
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "alice_id" integer, "alice_type" varchar, "bob_id" integer, "bob_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1115
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_id" ON "dorsale_customer_vault_links" ("alice_id")
1116
+  (0.1ms)  SELECT sql
1117
+ FROM sqlite_master
1118
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1119
+ UNION ALL
1120
+ SELECT sql
1121
+ FROM sqlite_temp_master
1122
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1123
+ 
1124
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_type" ON "dorsale_customer_vault_links" ("alice_type")
1125
+  (0.1ms)  SELECT sql
1126
+ FROM sqlite_master
1127
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1128
+ UNION ALL
1129
+ SELECT sql
1130
+ FROM sqlite_temp_master
1131
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1132
+ 
1133
+  (0.1ms) SELECT sql
1134
+ FROM sqlite_master
1135
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1136
+ UNION ALL
1137
+ SELECT sql
1138
+ FROM sqlite_temp_master
1139
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1140
+
1141
+  (1.1ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_id" ON "dorsale_customer_vault_links" ("bob_id")
1142
+  (0.1ms) SELECT sql
1143
+ FROM sqlite_master
1144
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
1145
+ UNION ALL
1146
+ SELECT sql
1147
+ FROM sqlite_temp_master
1148
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
1149
+
1150
+  (0.1ms)  SELECT sql
1151
+ FROM sqlite_master
1152
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1153
+ UNION ALL
1154
+ SELECT sql
1155
+ FROM sqlite_temp_master
1156
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1157
+ 
1158
+  (0.1ms) SELECT sql
1159
+ FROM sqlite_master
1160
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1161
+ UNION ALL
1162
+ SELECT sql
1163
+ FROM sqlite_temp_master
1164
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1165
+
1166
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_type" ON "dorsale_customer_vault_links" ("bob_type")
1167
+  (1.1ms) CREATE TABLE "dorsale_flyboy_folders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "folderable_id" integer, "folderable_type" varchar, "name" varchar, "description" text, "progress" integer, "status" varchar, "tracking" varchar, "version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1168
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_id" ON "dorsale_flyboy_folders" ("folderable_id")
1169
+  (0.1ms) SELECT sql
1170
+ FROM sqlite_master
1171
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
1172
+ UNION ALL
1173
+ SELECT sql
1174
+ FROM sqlite_temp_master
1175
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
1176
+
1177
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_type" ON "dorsale_flyboy_folders" ("folderable_type")
1178
+  (1.0ms) CREATE TABLE "dorsale_flyboy_task_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "date" datetime, "description" text, "progress" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar, "author_id" integer)
1179
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_task_comments_on_task_id" ON "dorsale_flyboy_task_comments" ("task_id")
1180
+  (1.1ms) CREATE TABLE "dorsale_flyboy_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar, "name" varchar, "description" text, "progress" integer, "done" boolean, "term" date, "reminder" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_type" varchar, "owner_id" integer)
1181
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_id" ON "dorsale_flyboy_tasks" ("taskable_id")
1182
+  (0.1ms) SELECT sql
1183
+ FROM sqlite_master
1184
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
1185
+ UNION ALL
1186
+ SELECT sql
1187
+ FROM sqlite_temp_master
1188
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
1189
+
1190
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_type" ON "dorsale_flyboy_tasks" ("taskable_type")
1191
+  (0.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1192
+  (1.0ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
1193
+  (1.0ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
1194
+  (0.2ms)  SELECT sql
1195
+ FROM sqlite_master
1196
+ WHERE name='taggings_idx' AND type='index'
1197
+ UNION ALL
1198
+ SELECT sql
1199
+ FROM sqlite_temp_master
1200
+ WHERE name='taggings_idx' AND type='index'
1201
+ 
1202
+  (1.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
1203
+  (1.3ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0) 
1204
+  (1.0ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
1205
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "is_active" boolean, "avatar" varchar) 
1206
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
1207
+  (0.1ms)  SELECT sql
1208
+ FROM sqlite_master
1209
+ WHERE name='index_users_on_email' AND type='index'
1210
+ UNION ALL
1211
+ SELECT sql
1212
+ FROM sqlite_temp_master
1213
+ WHERE name='index_users_on_email' AND type='index'
1214
+ 
1215
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
1216
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1217
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1218
+  (0.1ms) SELECT version FROM "schema_migrations"
1219
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160104105725')
1220
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616082916')
1221
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081204')
1222
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081205')
1223
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081206')
1224
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081207')
1225
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081208')
1226
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150803160334')
1227
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1228
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1229
+  (3.3ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "addressable_id" integer, "addressable_type" varchar) 
1230
+  (2.1ms) CREATE TABLE "dorsale_alexandrie_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar, "file" varchar, "sender_id" integer, "sender_type" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime)
1231
+  (1.8ms) CREATE TABLE "dorsale_billing_machine_id_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "id_card_name" varchar, "entity_name" varchar, "siret" varchar, "legal_form" varchar, "capital" integer, "registration_number" varchar, "intracommunity_vat" varchar, "address1" varchar, "address2" varchar, "zip" varchar, "city" varchar, "phone" varchar, "contact_full_name" varchar, "contact_phone" varchar, "contact_address_1" varchar, "contact_address_2" varchar, "contact_zip" varchar, "contact_city" varchar, "iban" varchar, "bic_swift" varchar, "bank_name" varchar, "bank_address" varchar, "ape_naf" varchar, "custom_info_1" text, "custom_info_2" text, "custom_info_3" text, "contact_fax" varchar, "contact_email" varchar, "logo" varchar, "registration_city" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1232
+  (2.2ms) CREATE TABLE "dorsale_billing_machine_invoice_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "invoice_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
1233
+  (0.1ms) select sqlite_version(*)
1234
+  (3.3ms) CREATE INDEX "index_dorsale_billing_machine_invoice_lines_on_invoice_id" ON "dorsale_billing_machine_invoice_lines" ("invoice_id")
1235
+  (1.4ms) CREATE TABLE "dorsale_billing_machine_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "payment_term_id" integer, "id_card_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "advance" decimal, "balance" decimal, "unique_index" integer, "paid" boolean, "due_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_id" varchar, "commercial_discount" decimal, "comments" text) 
1236
+  (1.4ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_id" ON "dorsale_billing_machine_invoices" ("customer_id")
1237
+  (0.2ms)  SELECT sql
1238
+ FROM sqlite_master
1239
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1240
+ UNION ALL
1241
+ SELECT sql
1242
+ FROM sqlite_temp_master
1243
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1244
+ 
1245
+  (1.8ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_type" ON "dorsale_billing_machine_invoices" ("customer_type")
1246
+  (0.1ms)  SELECT sql
1247
+ FROM sqlite_master
1248
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1249
+ UNION ALL
1250
+ SELECT sql
1251
+ FROM sqlite_temp_master
1252
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1253
+ 
1254
+  (0.1ms) SELECT sql
1255
+ FROM sqlite_master
1256
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1257
+ UNION ALL
1258
+ SELECT sql
1259
+ FROM sqlite_temp_master
1260
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1261
+
1262
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_id_card_id" ON "dorsale_billing_machine_invoices" ("id_card_id")
1263
+  (0.1ms) SELECT sql
1264
+ FROM sqlite_master
1265
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
1266
+ UNION ALL
1267
+ SELECT sql
1268
+ FROM sqlite_temp_master
1269
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
1270
+
1271
+  (0.1ms)  SELECT sql
1272
+ FROM sqlite_master
1273
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1274
+ UNION ALL
1275
+ SELECT sql
1276
+ FROM sqlite_temp_master
1277
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1278
+ 
1279
+  (0.1ms) SELECT sql
1280
+ FROM sqlite_master
1281
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1282
+ UNION ALL
1283
+ SELECT sql
1284
+ FROM sqlite_temp_master
1285
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1286
+
1287
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_payment_term_id" ON "dorsale_billing_machine_invoices" ("payment_term_id")
1288
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_payment_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1289
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_quotation_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quotation_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal) 
1290
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_quotation_lines_on_quotation_id" ON "dorsale_billing_machine_quotation_lines" ("quotation_id")
1291
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_quotations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "id_card_id" integer, "payment_term_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "unique_index" integer, "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "expires_at" date, "tracking_id" varchar, "commercial_discount" decimal, "state" varchar) 
1292
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_id" ON "dorsale_billing_machine_quotations" ("customer_id")
1293
+  (0.1ms)  SELECT sql
1294
+ FROM sqlite_master
1295
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1296
+ UNION ALL
1297
+ SELECT sql
1298
+ FROM sqlite_temp_master
1299
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1300
+ 
1301
+  (1.2ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_type" ON "dorsale_billing_machine_quotations" ("customer_type")
1302
+  (0.1ms)  SELECT sql
1303
+ FROM sqlite_master
1304
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1305
+ UNION ALL
1306
+ SELECT sql
1307
+ FROM sqlite_temp_master
1308
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1309
+ 
1310
+  (0.1ms) SELECT sql
1311
+ FROM sqlite_master
1312
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1313
+ UNION ALL
1314
+ SELECT sql
1315
+ FROM sqlite_temp_master
1316
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1317
+
1318
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_id_card_id" ON "dorsale_billing_machine_quotations" ("id_card_id")
1319
+  (0.1ms) SELECT sql
1320
+ FROM sqlite_master
1321
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
1322
+ UNION ALL
1323
+ SELECT sql
1324
+ FROM sqlite_temp_master
1325
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
1326
+
1327
+  (0.1ms)  SELECT sql
1328
+ FROM sqlite_master
1329
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1330
+ UNION ALL
1331
+ SELECT sql
1332
+ FROM sqlite_temp_master
1333
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1334
+ 
1335
+  (0.1ms) SELECT sql
1336
+ FROM sqlite_master
1337
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1338
+ UNION ALL
1339
+ SELECT sql
1340
+ FROM sqlite_temp_master
1341
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1342
+
1343
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_payment_term_id" ON "dorsale_billing_machine_quotations" ("payment_term_id")
1344
+  (1.0ms) CREATE TABLE "dorsale_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "user_type" varchar, "commentable_id" integer, "commentable_type" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar)
1345
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_corporations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_name" varchar, "email" text, "phone" varchar, "fax" varchar, "www" text, "legal_form" varchar, "capital" integer, "immatriculation_number_1" varchar, "immatriculation_number_2" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "european_union_vat_number" varchar) 
1346
+  (1.1ms) CREATE TABLE "dorsale_customer_vault_individuals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "short_name" varchar, "email" text, "title" varchar, "twitter" varchar, "www" text, "context" text, "phone" varchar, "fax" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "skype" varchar)
1347
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "alice_id" integer, "alice_type" varchar, "bob_id" integer, "bob_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1348
+  (1.2ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_id" ON "dorsale_customer_vault_links" ("alice_id")
1349
+  (0.1ms)  SELECT sql
1350
+ FROM sqlite_master
1351
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1352
+ UNION ALL
1353
+ SELECT sql
1354
+ FROM sqlite_temp_master
1355
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1356
+ 
1357
+  (1.2ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_type" ON "dorsale_customer_vault_links" ("alice_type")
1358
+  (0.3ms)  SELECT sql
1359
+ FROM sqlite_master
1360
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1361
+ UNION ALL
1362
+ SELECT sql
1363
+ FROM sqlite_temp_master
1364
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1365
+ 
1366
+  (0.1ms) SELECT sql
1367
+ FROM sqlite_master
1368
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1369
+ UNION ALL
1370
+ SELECT sql
1371
+ FROM sqlite_temp_master
1372
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1373
+
1374
+  (1.1ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_id" ON "dorsale_customer_vault_links" ("bob_id")
1375
+  (0.1ms) SELECT sql
1376
+ FROM sqlite_master
1377
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
1378
+ UNION ALL
1379
+ SELECT sql
1380
+ FROM sqlite_temp_master
1381
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
1382
+
1383
+  (0.1ms)  SELECT sql
1384
+ FROM sqlite_master
1385
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1386
+ UNION ALL
1387
+ SELECT sql
1388
+ FROM sqlite_temp_master
1389
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1390
+ 
1391
+  (0.1ms) SELECT sql
1392
+ FROM sqlite_master
1393
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1394
+ UNION ALL
1395
+ SELECT sql
1396
+ FROM sqlite_temp_master
1397
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1398
+
1399
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_type" ON "dorsale_customer_vault_links" ("bob_type")
1400
+  (1.1ms) CREATE TABLE "dorsale_expense_gun_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "code" varchar, "vat_deductible" boolean)
1401
+  (1.6ms) CREATE TABLE "dorsale_expense_gun_expense_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expense_id" integer, "category_id" integer, "name" varchar, "date" date, "total_all_taxes" float, "vat" float, "company_part" float, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1402
+  (1.0ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_category_id" ON "dorsale_expense_gun_expense_lines" ("category_id")
1403
+  (0.1ms)  SELECT sql
1404
+ FROM sqlite_master
1405
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
1406
+ UNION ALL
1407
+ SELECT sql
1408
+ FROM sqlite_temp_master
1409
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
1410
+ 
1411
+  (1.0ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_expense_id" ON "dorsale_expense_gun_expense_lines" ("expense_id")
1412
+  (1.1ms) CREATE TABLE "dorsale_expense_gun_expenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" varchar, "date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1413
+  (1.9ms) CREATE TABLE "dorsale_flyboy_folders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "folderable_id" integer, "folderable_type" varchar, "name" varchar, "description" text, "progress" integer, "status" varchar, "tracking" varchar, "version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1414
+  (1.1ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_id" ON "dorsale_flyboy_folders" ("folderable_id")
1415
+  (0.1ms) SELECT sql
1416
+ FROM sqlite_master
1417
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
1418
+ UNION ALL
1419
+ SELECT sql
1420
+ FROM sqlite_temp_master
1421
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
1422
+
1423
+  (1.1ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_type" ON "dorsale_flyboy_folders" ("folderable_type")
1424
+  (1.3ms) CREATE TABLE "dorsale_flyboy_task_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "date" datetime, "description" text, "progress" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar, "author_id" integer)
1425
+  (1.1ms) CREATE INDEX "index_dorsale_flyboy_task_comments_on_task_id" ON "dorsale_flyboy_task_comments" ("task_id")
1426
+  (1.2ms) CREATE TABLE "dorsale_flyboy_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar, "name" varchar, "description" text, "progress" integer, "done" boolean, "term" date, "reminder" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_type" varchar, "owner_id" integer)
1427
+  (1.1ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_id" ON "dorsale_flyboy_tasks" ("taskable_id")
1428
+  (0.1ms) SELECT sql
1429
+ FROM sqlite_master
1430
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
1431
+ UNION ALL
1432
+ SELECT sql
1433
+ FROM sqlite_temp_master
1434
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
1435
+
1436
+  (1.2ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_type" ON "dorsale_flyboy_tasks" ("taskable_type")
1437
+  (1.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1438
+  (1.3ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
1439
+  (1.0ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
1440
+  (0.2ms)  SELECT sql
1441
+ FROM sqlite_master
1442
+ WHERE name='taggings_idx' AND type='index'
1443
+ UNION ALL
1444
+ SELECT sql
1445
+ FROM sqlite_temp_master
1446
+ WHERE name='taggings_idx' AND type='index'
1447
+ 
1448
+  (1.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
1449
+  (1.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0) 
1450
+  (1.0ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
1451
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "is_active" boolean, "avatar" varchar) 
1452
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
1453
+  (0.1ms)  SELECT sql
1454
+ FROM sqlite_master
1455
+ WHERE name='index_users_on_email' AND type='index'
1456
+ UNION ALL
1457
+ SELECT sql
1458
+ FROM sqlite_temp_master
1459
+ WHERE name='index_users_on_email' AND type='index'
1460
+ 
1461
+  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
1462
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1463
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1464
+  (0.1ms) SELECT version FROM "schema_migrations"
1465
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160125201025')
1466
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616082916')
1467
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081204')
1468
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081205')
1469
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081206')
1470
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081207')
1471
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081208')
1472
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150803160334')
1473
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1474
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1475
+  (2.8ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "addressable_id" integer, "addressable_type" varchar) 
1476
+  (1.0ms) CREATE TABLE "dorsale_alexandrie_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar, "file" varchar, "sender_id" integer, "sender_type" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime)
1477
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_id_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "id_card_name" varchar, "entity_name" varchar, "siret" varchar, "legal_form" varchar, "capital" integer, "registration_number" varchar, "intracommunity_vat" varchar, "address1" varchar, "address2" varchar, "zip" varchar, "city" varchar, "phone" varchar, "contact_full_name" varchar, "contact_phone" varchar, "contact_address_1" varchar, "contact_address_2" varchar, "contact_zip" varchar, "contact_city" varchar, "iban" varchar, "bic_swift" varchar, "bank_name" varchar, "bank_address" varchar, "ape_naf" varchar, "custom_info_1" text, "custom_info_2" text, "custom_info_3" text, "contact_fax" varchar, "contact_email" varchar, "logo" varchar, "registration_city" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1478
+  (0.9ms) CREATE TABLE "dorsale_billing_machine_invoice_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "invoice_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
1479
+  (0.1ms) select sqlite_version(*)
1480
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoice_lines_on_invoice_id" ON "dorsale_billing_machine_invoice_lines" ("invoice_id")
1481
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "payment_term_id" integer, "id_card_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "advance" decimal, "balance" decimal, "unique_index" integer, "paid" boolean, "due_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_id" varchar, "commercial_discount" decimal, "comments" text) 
1482
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_id" ON "dorsale_billing_machine_invoices" ("customer_id")
1483
+  (0.1ms)  SELECT sql
1484
+ FROM sqlite_master
1485
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1486
+ UNION ALL
1487
+ SELECT sql
1488
+ FROM sqlite_temp_master
1489
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1490
+ 
1491
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_type" ON "dorsale_billing_machine_invoices" ("customer_type")
1492
+  (0.2ms)  SELECT sql
1493
+ FROM sqlite_master
1494
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1495
+ UNION ALL
1496
+ SELECT sql
1497
+ FROM sqlite_temp_master
1498
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1499
+ 
1500
+  (0.1ms) SELECT sql
1501
+ FROM sqlite_master
1502
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1503
+ UNION ALL
1504
+ SELECT sql
1505
+ FROM sqlite_temp_master
1506
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1507
+
1508
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_id_card_id" ON "dorsale_billing_machine_invoices" ("id_card_id")
1509
+  (0.1ms) SELECT sql
1510
+ FROM sqlite_master
1511
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
1512
+ UNION ALL
1513
+ SELECT sql
1514
+ FROM sqlite_temp_master
1515
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
1516
+
1517
+  (0.1ms)  SELECT sql
1518
+ FROM sqlite_master
1519
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1520
+ UNION ALL
1521
+ SELECT sql
1522
+ FROM sqlite_temp_master
1523
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1524
+ 
1525
+  (0.1ms) SELECT sql
1526
+ FROM sqlite_master
1527
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1528
+ UNION ALL
1529
+ SELECT sql
1530
+ FROM sqlite_temp_master
1531
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1532
+
1533
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_payment_term_id" ON "dorsale_billing_machine_invoices" ("payment_term_id")
1534
+  (1.2ms) CREATE TABLE "dorsale_billing_machine_payment_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1535
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_quotation_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quotation_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal) 
1536
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotation_lines_on_quotation_id" ON "dorsale_billing_machine_quotation_lines" ("quotation_id")
1537
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_quotations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "id_card_id" integer, "payment_term_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "unique_index" integer, "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "expires_at" date, "tracking_id" varchar, "commercial_discount" decimal, "state" varchar) 
1538
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_id" ON "dorsale_billing_machine_quotations" ("customer_id")
1539
+  (0.1ms)  SELECT sql
1540
+ FROM sqlite_master
1541
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1542
+ UNION ALL
1543
+ SELECT sql
1544
+ FROM sqlite_temp_master
1545
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1546
+ 
1547
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_type" ON "dorsale_billing_machine_quotations" ("customer_type")
1548
+  (0.1ms)  SELECT sql
1549
+ FROM sqlite_master
1550
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1551
+ UNION ALL
1552
+ SELECT sql
1553
+ FROM sqlite_temp_master
1554
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1555
+ 
1556
+  (0.1ms) SELECT sql
1557
+ FROM sqlite_master
1558
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1559
+ UNION ALL
1560
+ SELECT sql
1561
+ FROM sqlite_temp_master
1562
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1563
+
1564
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_id_card_id" ON "dorsale_billing_machine_quotations" ("id_card_id")
1565
+  (0.1ms) SELECT sql
1566
+ FROM sqlite_master
1567
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
1568
+ UNION ALL
1569
+ SELECT sql
1570
+ FROM sqlite_temp_master
1571
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
1572
+
1573
+  (0.1ms)  SELECT sql
1574
+ FROM sqlite_master
1575
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1576
+ UNION ALL
1577
+ SELECT sql
1578
+ FROM sqlite_temp_master
1579
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1580
+ 
1581
+  (0.1ms) SELECT sql
1582
+ FROM sqlite_master
1583
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1584
+ UNION ALL
1585
+ SELECT sql
1586
+ FROM sqlite_temp_master
1587
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1588
+
1589
+  (1.2ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_payment_term_id" ON "dorsale_billing_machine_quotations" ("payment_term_id")
1590
+  (1.1ms) CREATE TABLE "dorsale_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "user_type" varchar, "commentable_id" integer, "commentable_type" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar)
1591
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_corporations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_name" varchar, "email" text, "phone" varchar, "fax" varchar, "www" text, "legal_form" varchar, "capital" integer, "immatriculation_number_1" varchar, "immatriculation_number_2" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "european_union_vat_number" varchar) 
1592
+  (1.1ms) CREATE TABLE "dorsale_customer_vault_individuals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "short_name" varchar, "email" text, "title" varchar, "twitter" varchar, "www" text, "context" text, "phone" varchar, "fax" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "skype" varchar)
1593
+  (1.4ms) CREATE TABLE "dorsale_customer_vault_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "alice_id" integer, "alice_type" varchar, "bob_id" integer, "bob_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1594
+  (1.1ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_id" ON "dorsale_customer_vault_links" ("alice_id")
1595
+  (0.1ms)  SELECT sql
1596
+ FROM sqlite_master
1597
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1598
+ UNION ALL
1599
+ SELECT sql
1600
+ FROM sqlite_temp_master
1601
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1602
+ 
1603
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_type" ON "dorsale_customer_vault_links" ("alice_type")
1604
+  (0.1ms)  SELECT sql
1605
+ FROM sqlite_master
1606
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1607
+ UNION ALL
1608
+ SELECT sql
1609
+ FROM sqlite_temp_master
1610
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1611
+ 
1612
+  (0.1ms) SELECT sql
1613
+ FROM sqlite_master
1614
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1615
+ UNION ALL
1616
+ SELECT sql
1617
+ FROM sqlite_temp_master
1618
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1619
+
1620
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_id" ON "dorsale_customer_vault_links" ("bob_id")
1621
+  (0.1ms) SELECT sql
1622
+ FROM sqlite_master
1623
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
1624
+ UNION ALL
1625
+ SELECT sql
1626
+ FROM sqlite_temp_master
1627
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
1628
+
1629
+  (0.1ms)  SELECT sql
1630
+ FROM sqlite_master
1631
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1632
+ UNION ALL
1633
+ SELECT sql
1634
+ FROM sqlite_temp_master
1635
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1636
+ 
1637
+  (0.1ms) SELECT sql
1638
+ FROM sqlite_master
1639
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1640
+ UNION ALL
1641
+ SELECT sql
1642
+ FROM sqlite_temp_master
1643
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1644
+
1645
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_type" ON "dorsale_customer_vault_links" ("bob_type")
1646
+  (1.0ms) CREATE TABLE "dorsale_expense_gun_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "code" varchar, "vat_deductible" boolean)
1647
+  (1.0ms) CREATE TABLE "dorsale_expense_gun_expense_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expense_id" integer, "category_id" integer, "name" varchar, "date" date, "total_all_taxes" float, "vat" float, "company_part" float, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1648
+  (0.9ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_category_id" ON "dorsale_expense_gun_expense_lines" ("category_id")
1649
+  (0.1ms)  SELECT sql
1650
+ FROM sqlite_master
1651
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
1652
+ UNION ALL
1653
+ SELECT sql
1654
+ FROM sqlite_temp_master
1655
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
1656
+ 
1657
+  (0.9ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_expense_id" ON "dorsale_expense_gun_expense_lines" ("expense_id")
1658
+  (0.9ms) CREATE TABLE "dorsale_expense_gun_expenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" varchar, "date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1659
+  (1.1ms) CREATE TABLE "dorsale_flyboy_folders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "folderable_id" integer, "folderable_type" varchar, "name" varchar, "description" text, "progress" integer, "status" varchar, "tracking" varchar, "version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1660
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_id" ON "dorsale_flyboy_folders" ("folderable_id")
1661
+  (0.1ms) SELECT sql
1662
+ FROM sqlite_master
1663
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
1664
+ UNION ALL
1665
+ SELECT sql
1666
+ FROM sqlite_temp_master
1667
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
1668
+
1669
+  (0.9ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_type" ON "dorsale_flyboy_folders" ("folderable_type")
1670
+  (1.0ms) CREATE TABLE "dorsale_flyboy_task_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "date" datetime, "description" text, "progress" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar, "author_id" integer)
1671
+  (0.9ms) CREATE INDEX "index_dorsale_flyboy_task_comments_on_task_id" ON "dorsale_flyboy_task_comments" ("task_id")
1672
+  (1.1ms) CREATE TABLE "dorsale_flyboy_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar, "name" varchar, "description" text, "progress" integer, "done" boolean, "term" date, "reminder" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_type" varchar, "owner_id" integer)
1673
+  (0.9ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_id" ON "dorsale_flyboy_tasks" ("taskable_id")
1674
+  (0.1ms) SELECT sql
1675
+ FROM sqlite_master
1676
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
1677
+ UNION ALL
1678
+ SELECT sql
1679
+ FROM sqlite_temp_master
1680
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
1681
+
1682
+  (1.2ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_type" ON "dorsale_flyboy_tasks" ("taskable_type")
1683
+  (1.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1684
+  (1.0ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
1685
+  (1.0ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
1686
+  (0.1ms)  SELECT sql
1687
+ FROM sqlite_master
1688
+ WHERE name='taggings_idx' AND type='index'
1689
+ UNION ALL
1690
+ SELECT sql
1691
+ FROM sqlite_temp_master
1692
+ WHERE name='taggings_idx' AND type='index'
1693
+ 
1694
+  (1.0ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
1695
+  (1.1ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0) 
1696
+  (1.3ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
1697
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "is_active" boolean, "avatar" varchar) 
1698
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
1699
+  (0.1ms)  SELECT sql
1700
+ FROM sqlite_master
1701
+ WHERE name='index_users_on_email' AND type='index'
1702
+ UNION ALL
1703
+ SELECT sql
1704
+ FROM sqlite_temp_master
1705
+ WHERE name='index_users_on_email' AND type='index'
1706
+ 
1707
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
1708
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1709
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1710
+  (0.1ms) SELECT version FROM "schema_migrations"
1711
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160125201025')
1712
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616082916')
1713
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081204')
1714
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081205')
1715
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081206')
1716
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081207')
1717
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081208')
1718
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150803160334')
1719
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1720
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1721
+  (2.5ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "addressable_id" integer, "addressable_type" varchar) 
1722
+  (1.0ms) CREATE TABLE "dorsale_alexandrie_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar, "file" varchar, "sender_id" integer, "sender_type" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime)
1723
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_id_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "id_card_name" varchar, "entity_name" varchar, "siret" varchar, "legal_form" varchar, "capital" integer, "registration_number" varchar, "intracommunity_vat" varchar, "address1" varchar, "address2" varchar, "zip" varchar, "city" varchar, "phone" varchar, "contact_full_name" varchar, "contact_phone" varchar, "contact_address_1" varchar, "contact_address_2" varchar, "contact_zip" varchar, "contact_city" varchar, "iban" varchar, "bic_swift" varchar, "bank_name" varchar, "bank_address" varchar, "ape_naf" varchar, "custom_info_1" text, "custom_info_2" text, "custom_info_3" text, "contact_fax" varchar, "contact_email" varchar, "logo" varchar, "registration_city" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1724
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_invoice_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "invoice_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
1725
+  (0.1ms) select sqlite_version(*)
1726
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoice_lines_on_invoice_id" ON "dorsale_billing_machine_invoice_lines" ("invoice_id")
1727
+  (0.9ms) CREATE TABLE "dorsale_billing_machine_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "payment_term_id" integer, "id_card_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "advance" decimal, "balance" decimal, "unique_index" integer, "paid" boolean, "due_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_id" varchar, "commercial_discount" decimal, "comments" text) 
1728
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_id" ON "dorsale_billing_machine_invoices" ("customer_id")
1729
+  (0.1ms)  SELECT sql
1730
+ FROM sqlite_master
1731
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1732
+ UNION ALL
1733
+ SELECT sql
1734
+ FROM sqlite_temp_master
1735
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1736
+ 
1737
+  (0.9ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_type" ON "dorsale_billing_machine_invoices" ("customer_type")
1738
+  (0.1ms)  SELECT sql
1739
+ FROM sqlite_master
1740
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1741
+ UNION ALL
1742
+ SELECT sql
1743
+ FROM sqlite_temp_master
1744
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1745
+ 
1746
+  (0.1ms) SELECT sql
1747
+ FROM sqlite_master
1748
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1749
+ UNION ALL
1750
+ SELECT sql
1751
+ FROM sqlite_temp_master
1752
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1753
+
1754
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_id_card_id" ON "dorsale_billing_machine_invoices" ("id_card_id")
1755
+  (0.1ms) SELECT sql
1756
+ FROM sqlite_master
1757
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
1758
+ UNION ALL
1759
+ SELECT sql
1760
+ FROM sqlite_temp_master
1761
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
1762
+
1763
+  (0.1ms)  SELECT sql
1764
+ FROM sqlite_master
1765
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1766
+ UNION ALL
1767
+ SELECT sql
1768
+ FROM sqlite_temp_master
1769
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1770
+ 
1771
+  (0.2ms) SELECT sql
1772
+ FROM sqlite_master
1773
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1774
+ UNION ALL
1775
+ SELECT sql
1776
+ FROM sqlite_temp_master
1777
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1778
+
1779
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_payment_term_id" ON "dorsale_billing_machine_invoices" ("payment_term_id")
1780
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_payment_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1781
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_quotation_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quotation_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal) 
1782
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotation_lines_on_quotation_id" ON "dorsale_billing_machine_quotation_lines" ("quotation_id")
1783
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_quotations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "id_card_id" integer, "payment_term_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "unique_index" integer, "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "expires_at" date, "tracking_id" varchar, "commercial_discount" decimal, "state" varchar) 
1784
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_id" ON "dorsale_billing_machine_quotations" ("customer_id")
1785
+  (0.1ms)  SELECT sql
1786
+ FROM sqlite_master
1787
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1788
+ UNION ALL
1789
+ SELECT sql
1790
+ FROM sqlite_temp_master
1791
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1792
+ 
1793
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_type" ON "dorsale_billing_machine_quotations" ("customer_type")
1794
+  (0.1ms)  SELECT sql
1795
+ FROM sqlite_master
1796
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1797
+ UNION ALL
1798
+ SELECT sql
1799
+ FROM sqlite_temp_master
1800
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1801
+ 
1802
+  (0.1ms) SELECT sql
1803
+ FROM sqlite_master
1804
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1805
+ UNION ALL
1806
+ SELECT sql
1807
+ FROM sqlite_temp_master
1808
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1809
+
1810
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_id_card_id" ON "dorsale_billing_machine_quotations" ("id_card_id")
1811
+  (0.1ms) SELECT sql
1812
+ FROM sqlite_master
1813
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
1814
+ UNION ALL
1815
+ SELECT sql
1816
+ FROM sqlite_temp_master
1817
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
1818
+
1819
+  (0.1ms)  SELECT sql
1820
+ FROM sqlite_master
1821
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1822
+ UNION ALL
1823
+ SELECT sql
1824
+ FROM sqlite_temp_master
1825
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
1826
+ 
1827
+  (0.1ms) SELECT sql
1828
+ FROM sqlite_master
1829
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1830
+ UNION ALL
1831
+ SELECT sql
1832
+ FROM sqlite_temp_master
1833
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
1834
+
1835
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_payment_term_id" ON "dorsale_billing_machine_quotations" ("payment_term_id")
1836
+  (1.0ms) CREATE TABLE "dorsale_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "user_type" varchar, "commentable_id" integer, "commentable_type" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar)
1837
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_corporations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_name" varchar, "email" text, "phone" varchar, "fax" varchar, "www" text, "legal_form" varchar, "capital" integer, "immatriculation_number_1" varchar, "immatriculation_number_2" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "european_union_vat_number" varchar) 
1838
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_individuals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "short_name" varchar, "email" text, "title" varchar, "twitter" varchar, "www" text, "context" text, "phone" varchar, "fax" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "skype" varchar)
1839
+  (1.0ms) CREATE TABLE "dorsale_customer_vault_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "alice_id" integer, "alice_type" varchar, "bob_id" integer, "bob_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1840
+  (1.1ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_id" ON "dorsale_customer_vault_links" ("alice_id")
1841
+  (0.1ms)  SELECT sql
1842
+ FROM sqlite_master
1843
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1844
+ UNION ALL
1845
+ SELECT sql
1846
+ FROM sqlite_temp_master
1847
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1848
+ 
1849
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_type" ON "dorsale_customer_vault_links" ("alice_type")
1850
+  (0.1ms)  SELECT sql
1851
+ FROM sqlite_master
1852
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1853
+ UNION ALL
1854
+ SELECT sql
1855
+ FROM sqlite_temp_master
1856
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1857
+ 
1858
+  (0.1ms) SELECT sql
1859
+ FROM sqlite_master
1860
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1861
+ UNION ALL
1862
+ SELECT sql
1863
+ FROM sqlite_temp_master
1864
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1865
+
1866
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_id" ON "dorsale_customer_vault_links" ("bob_id")
1867
+  (0.1ms) SELECT sql
1868
+ FROM sqlite_master
1869
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
1870
+ UNION ALL
1871
+ SELECT sql
1872
+ FROM sqlite_temp_master
1873
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
1874
+
1875
+  (0.1ms)  SELECT sql
1876
+ FROM sqlite_master
1877
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1878
+ UNION ALL
1879
+ SELECT sql
1880
+ FROM sqlite_temp_master
1881
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
1882
+ 
1883
+  (0.1ms) SELECT sql
1884
+ FROM sqlite_master
1885
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1886
+ UNION ALL
1887
+ SELECT sql
1888
+ FROM sqlite_temp_master
1889
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
1890
+
1891
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_type" ON "dorsale_customer_vault_links" ("bob_type")
1892
+  (1.0ms) CREATE TABLE "dorsale_expense_gun_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "code" varchar, "vat_deductible" boolean)
1893
+  (1.0ms) CREATE TABLE "dorsale_expense_gun_expense_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expense_id" integer, "category_id" integer, "name" varchar, "date" date, "total_all_taxes" float, "vat" float, "company_part" float, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1894
+  (0.9ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_category_id" ON "dorsale_expense_gun_expense_lines" ("category_id")
1895
+  (0.1ms)  SELECT sql
1896
+ FROM sqlite_master
1897
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
1898
+ UNION ALL
1899
+ SELECT sql
1900
+ FROM sqlite_temp_master
1901
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
1902
+ 
1903
+  (1.0ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_expense_id" ON "dorsale_expense_gun_expense_lines" ("expense_id")
1904
+  (1.0ms) CREATE TABLE "dorsale_expense_gun_expenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" varchar, "date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1905
+  (1.1ms) CREATE TABLE "dorsale_flyboy_folders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "folderable_id" integer, "folderable_type" varchar, "name" varchar, "description" text, "progress" integer, "status" varchar, "tracking" varchar, "version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1906
+  (0.9ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_id" ON "dorsale_flyboy_folders" ("folderable_id")
1907
+  (0.1ms) SELECT sql
1908
+ FROM sqlite_master
1909
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
1910
+ UNION ALL
1911
+ SELECT sql
1912
+ FROM sqlite_temp_master
1913
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
1914
+
1915
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_type" ON "dorsale_flyboy_folders" ("folderable_type")
1916
+  (1.1ms) CREATE TABLE "dorsale_flyboy_task_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "date" datetime, "description" text, "progress" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar, "author_id" integer)
1917
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_task_comments_on_task_id" ON "dorsale_flyboy_task_comments" ("task_id")
1918
+  (1.1ms) CREATE TABLE "dorsale_flyboy_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar, "name" varchar, "description" text, "progress" integer, "done" boolean, "term" date, "reminder" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_type" varchar, "owner_id" integer)
1919
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_id" ON "dorsale_flyboy_tasks" ("taskable_id")
1920
+  (0.1ms) SELECT sql
1921
+ FROM sqlite_master
1922
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
1923
+ UNION ALL
1924
+ SELECT sql
1925
+ FROM sqlite_temp_master
1926
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
1927
+
1928
+  (1.1ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_type" ON "dorsale_flyboy_tasks" ("taskable_type")
1929
+  (1.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1930
+  (1.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
1931
+  (1.0ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
1932
+  (0.1ms)  SELECT sql
1933
+ FROM sqlite_master
1934
+ WHERE name='taggings_idx' AND type='index'
1935
+ UNION ALL
1936
+ SELECT sql
1937
+ FROM sqlite_temp_master
1938
+ WHERE name='taggings_idx' AND type='index'
1939
+ 
1940
+  (1.0ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
1941
+  (1.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0) 
1942
+  (1.1ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
1943
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "is_active" boolean, "avatar" varchar) 
1944
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
1945
+  (0.1ms)  SELECT sql
1946
+ FROM sqlite_master
1947
+ WHERE name='index_users_on_email' AND type='index'
1948
+ UNION ALL
1949
+ SELECT sql
1950
+ FROM sqlite_temp_master
1951
+ WHERE name='index_users_on_email' AND type='index'
1952
+ 
1953
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
1954
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1955
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1956
+  (0.2ms) SELECT version FROM "schema_migrations"
1957
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160125201025')
1958
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616082916')
1959
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081204')
1960
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081205')
1961
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081206')
1962
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081207')
1963
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150624081208')
1964
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150803160334')
1965
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1966
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1967
+ Migrating to CreateDorsaleAddresses (20141010140200)
1968
+  (0.1ms) begin transaction
1969
+  (0.2ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1970
+ SQLite3::SQLException: table "dorsale_addresses" already exists: CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1971
+  (0.1ms) rollback transaction
1972
+  (2.6ms) DROP TABLE "dorsale_addresses"
1973
+  (1.1ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "street_bis" varchar, "city" varchar, "zip" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "addressable_id" integer, "addressable_type" varchar)
1974
+  (1.0ms) DROP TABLE "dorsale_alexandrie_attachments"
1975
+  (1.0ms) CREATE TABLE "dorsale_alexandrie_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar, "file" varchar, "sender_id" integer, "sender_type" varchar, "name" varchar, "created_at" datetime, "updated_at" datetime)
1976
+  (1.0ms) DROP TABLE "dorsale_billing_machine_id_cards"
1977
+  (1.5ms) CREATE TABLE "dorsale_billing_machine_id_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "id_card_name" varchar, "entity_name" varchar, "siret" varchar, "legal_form" varchar, "capital" integer, "registration_number" varchar, "intracommunity_vat" varchar, "address1" varchar, "address2" varchar, "zip" varchar, "city" varchar, "phone" varchar, "contact_full_name" varchar, "contact_phone" varchar, "contact_address_1" varchar, "contact_address_2" varchar, "contact_zip" varchar, "contact_city" varchar, "iban" varchar, "bic_swift" varchar, "bank_name" varchar, "bank_address" varchar, "ape_naf" varchar, "custom_info_1" text, "custom_info_2" text, "custom_info_3" text, "contact_fax" varchar, "contact_email" varchar, "logo" varchar, "registration_city" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1978
+  (1.1ms) DROP TABLE "dorsale_billing_machine_invoice_lines"
1979
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_invoice_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "invoice_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
1980
+  (0.1ms) select sqlite_version(*)
1981
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_invoice_lines_on_invoice_id" ON "dorsale_billing_machine_invoice_lines" ("invoice_id")
1982
+  (1.5ms) DROP TABLE "dorsale_billing_machine_invoices"
1983
+  (1.4ms) CREATE TABLE "dorsale_billing_machine_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "payment_term_id" integer, "id_card_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "advance" decimal, "balance" decimal, "unique_index" integer, "paid" boolean, "due_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_id" varchar, "commercial_discount" decimal, "comments" text)
1984
+  (1.2ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_id" ON "dorsale_billing_machine_invoices" ("customer_id")
1985
+  (0.1ms) SELECT sql
1986
+ FROM sqlite_master
1987
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1988
+ UNION ALL
1989
+ SELECT sql
1990
+ FROM sqlite_temp_master
1991
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
1992
+
1993
+  (1.2ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_customer_type" ON "dorsale_billing_machine_invoices" ("customer_type")
1994
+  (0.1ms) SELECT sql
1995
+ FROM sqlite_master
1996
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
1997
+ UNION ALL
1998
+ SELECT sql
1999
+ FROM sqlite_temp_master
2000
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
2001
+
2002
+  (0.2ms)  SELECT sql
2003
+ FROM sqlite_master
2004
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
2005
+ UNION ALL
2006
+ SELECT sql
2007
+ FROM sqlite_temp_master
2008
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
2009
+ 
2010
+  (1.7ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_id_card_id" ON "dorsale_billing_machine_invoices" ("id_card_id")
2011
+  (0.2ms)  SELECT sql
2012
+ FROM sqlite_master
2013
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
2014
+ UNION ALL
2015
+ SELECT sql
2016
+ FROM sqlite_temp_master
2017
+ WHERE name='index_dorsale_billing_machine_invoices_on_id_card_id' AND type='index'
2018
+ 
2019
+  (0.2ms) SELECT sql
2020
+ FROM sqlite_master
2021
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
2022
+ UNION ALL
2023
+ SELECT sql
2024
+ FROM sqlite_temp_master
2025
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_type' AND type='index'
2026
+
2027
+  (0.1ms)  SELECT sql
2028
+ FROM sqlite_master
2029
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
2030
+ UNION ALL
2031
+ SELECT sql
2032
+ FROM sqlite_temp_master
2033
+ WHERE name='index_dorsale_billing_machine_invoices_on_customer_id' AND type='index'
2034
+ 
2035
+  (1.2ms) CREATE INDEX "index_dorsale_billing_machine_invoices_on_payment_term_id" ON "dorsale_billing_machine_invoices" ("payment_term_id")
2036
+  (1.0ms) DROP TABLE "dorsale_billing_machine_payment_terms"
2037
+  (0.9ms) CREATE TABLE "dorsale_billing_machine_payment_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2038
+  (1.0ms) DROP TABLE "dorsale_billing_machine_quotation_lines"
2039
+  (1.0ms) CREATE TABLE "dorsale_billing_machine_quotation_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quotation_id" integer, "label" text, "quantity" decimal, "unit" varchar, "unit_price" decimal, "total" decimal, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "vat_rate" decimal)
2040
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotation_lines_on_quotation_id" ON "dorsale_billing_machine_quotation_lines" ("quotation_id")
2041
+  (1.2ms) DROP TABLE "dorsale_billing_machine_quotations"
2042
+  (1.1ms) CREATE TABLE "dorsale_billing_machine_quotations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer_id" integer, "customer_type" varchar, "id_card_id" integer, "payment_term_id" integer, "date" date, "label" varchar, "total_excluding_taxes" decimal, "vat_amount" decimal, "total_including_taxes" decimal, "unique_index" integer, "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "expires_at" date, "tracking_id" varchar, "commercial_discount" decimal, "state" varchar) 
2043
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_id" ON "dorsale_billing_machine_quotations" ("customer_id")
2044
+  (0.1ms)  SELECT sql
2045
+ FROM sqlite_master
2046
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
2047
+ UNION ALL
2048
+ SELECT sql
2049
+ FROM sqlite_temp_master
2050
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
2051
+ 
2052
+  (1.1ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_customer_type" ON "dorsale_billing_machine_quotations" ("customer_type")
2053
+  (0.1ms)  SELECT sql
2054
+ FROM sqlite_master
2055
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
2056
+ UNION ALL
2057
+ SELECT sql
2058
+ FROM sqlite_temp_master
2059
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
2060
+ 
2061
+  (0.1ms) SELECT sql
2062
+ FROM sqlite_master
2063
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
2064
+ UNION ALL
2065
+ SELECT sql
2066
+ FROM sqlite_temp_master
2067
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
2068
+
2069
+  (1.0ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_id_card_id" ON "dorsale_billing_machine_quotations" ("id_card_id")
2070
+  (0.1ms) SELECT sql
2071
+ FROM sqlite_master
2072
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
2073
+ UNION ALL
2074
+ SELECT sql
2075
+ FROM sqlite_temp_master
2076
+ WHERE name='index_dorsale_billing_machine_quotations_on_id_card_id' AND type='index'
2077
+
2078
+  (0.1ms)  SELECT sql
2079
+ FROM sqlite_master
2080
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
2081
+ UNION ALL
2082
+ SELECT sql
2083
+ FROM sqlite_temp_master
2084
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_type' AND type='index'
2085
+ 
2086
+  (0.1ms) SELECT sql
2087
+ FROM sqlite_master
2088
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
2089
+ UNION ALL
2090
+ SELECT sql
2091
+ FROM sqlite_temp_master
2092
+ WHERE name='index_dorsale_billing_machine_quotations_on_customer_id' AND type='index'
2093
+
2094
+  (1.4ms) CREATE INDEX "index_dorsale_billing_machine_quotations_on_payment_term_id" ON "dorsale_billing_machine_quotations" ("payment_term_id")
2095
+  (1.2ms) DROP TABLE "dorsale_comments"
2096
+  (1.2ms) CREATE TABLE "dorsale_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author_id" integer, "user_type" varchar, "commentable_id" integer, "commentable_type" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar) 
2097
+  (1.4ms) DROP TABLE "dorsale_customer_vault_corporations"
2098
+  (1.7ms) CREATE TABLE "dorsale_customer_vault_corporations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_name" varchar, "email" text, "phone" varchar, "fax" varchar, "www" text, "legal_form" varchar, "capital" integer, "immatriculation_number_1" varchar, "immatriculation_number_2" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "european_union_vat_number" varchar) 
2099
+  (2.4ms) DROP TABLE "dorsale_customer_vault_individuals"
2100
+  (1.4ms) CREATE TABLE "dorsale_customer_vault_individuals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "short_name" varchar, "email" text, "title" varchar, "twitter" varchar, "www" text, "context" text, "phone" varchar, "fax" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "skype" varchar) 
2101
+  (1.3ms) DROP TABLE "dorsale_customer_vault_links"
2102
+  (0.9ms) CREATE TABLE "dorsale_customer_vault_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "alice_id" integer, "alice_type" varchar, "bob_id" integer, "bob_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2103
+  (0.9ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_id" ON "dorsale_customer_vault_links" ("alice_id")
2104
+  (0.1ms)  SELECT sql
2105
+ FROM sqlite_master
2106
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
2107
+ UNION ALL
2108
+ SELECT sql
2109
+ FROM sqlite_temp_master
2110
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
2111
+ 
2112
+  (1.0ms) CREATE INDEX "index_dorsale_customer_vault_links_on_alice_type" ON "dorsale_customer_vault_links" ("alice_type")
2113
+  (0.1ms)  SELECT sql
2114
+ FROM sqlite_master
2115
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
2116
+ UNION ALL
2117
+ SELECT sql
2118
+ FROM sqlite_temp_master
2119
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
2120
+ 
2121
+  (0.1ms) SELECT sql
2122
+ FROM sqlite_master
2123
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
2124
+ UNION ALL
2125
+ SELECT sql
2126
+ FROM sqlite_temp_master
2127
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
2128
+
2129
+  (1.2ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_id" ON "dorsale_customer_vault_links" ("bob_id")
2130
+  (0.1ms) SELECT sql
2131
+ FROM sqlite_master
2132
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
2133
+ UNION ALL
2134
+ SELECT sql
2135
+ FROM sqlite_temp_master
2136
+ WHERE name='index_dorsale_customer_vault_links_on_bob_id' AND type='index'
2137
+
2138
+  (0.1ms)  SELECT sql
2139
+ FROM sqlite_master
2140
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
2141
+ UNION ALL
2142
+ SELECT sql
2143
+ FROM sqlite_temp_master
2144
+ WHERE name='index_dorsale_customer_vault_links_on_alice_type' AND type='index'
2145
+ 
2146
+  (0.1ms) SELECT sql
2147
+ FROM sqlite_master
2148
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
2149
+ UNION ALL
2150
+ SELECT sql
2151
+ FROM sqlite_temp_master
2152
+ WHERE name='index_dorsale_customer_vault_links_on_alice_id' AND type='index'
2153
+
2154
+  (1.4ms) CREATE INDEX "index_dorsale_customer_vault_links_on_bob_type" ON "dorsale_customer_vault_links" ("bob_type")
2155
+  (1.3ms) DROP TABLE "dorsale_expense_gun_categories"
2156
+  (1.3ms) CREATE TABLE "dorsale_expense_gun_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "code" varchar, "vat_deductible" boolean) 
2157
+  (1.6ms) DROP TABLE "dorsale_expense_gun_expense_lines"
2158
+  (1.7ms) CREATE TABLE "dorsale_expense_gun_expense_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expense_id" integer, "category_id" integer, "name" varchar, "date" date, "total_all_taxes" float, "vat" float, "company_part" float, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2159
+  (1.8ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_category_id" ON "dorsale_expense_gun_expense_lines" ("category_id")
2160
+  (0.3ms)  SELECT sql
2161
+ FROM sqlite_master
2162
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
2163
+ UNION ALL
2164
+ SELECT sql
2165
+ FROM sqlite_temp_master
2166
+ WHERE name='index_dorsale_expense_gun_expense_lines_on_category_id' AND type='index'
2167
+ 
2168
+  (2.6ms) CREATE INDEX "index_dorsale_expense_gun_expense_lines_on_expense_id" ON "dorsale_expense_gun_expense_lines" ("expense_id")
2169
+  (1.2ms) DROP TABLE "dorsale_expense_gun_expenses"
2170
+  (1.2ms) CREATE TABLE "dorsale_expense_gun_expenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" varchar, "date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2171
+  (1.2ms) DROP TABLE "dorsale_flyboy_folders"
2172
+  (2.6ms) CREATE TABLE "dorsale_flyboy_folders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "folderable_id" integer, "folderable_type" varchar, "name" varchar, "description" text, "progress" integer, "status" varchar, "tracking" varchar, "version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2173
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_id" ON "dorsale_flyboy_folders" ("folderable_id")
2174
+  (0.2ms) SELECT sql
2175
+ FROM sqlite_master
2176
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
2177
+ UNION ALL
2178
+ SELECT sql
2179
+ FROM sqlite_temp_master
2180
+ WHERE name='index_dorsale_flyboy_folders_on_folderable_id' AND type='index'
2181
+
2182
+  (1.0ms) CREATE INDEX "index_dorsale_flyboy_folders_on_folderable_type" ON "dorsale_flyboy_folders" ("folderable_type")
2183
+  (1.1ms) DROP TABLE "dorsale_flyboy_task_comments"
2184
+  (1.1ms) CREATE TABLE "dorsale_flyboy_task_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "date" datetime, "description" text, "progress" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "author_type" varchar, "author_id" integer) 
2185
+  (2.3ms) CREATE INDEX "index_dorsale_flyboy_task_comments_on_task_id" ON "dorsale_flyboy_task_comments" ("task_id")
2186
+  (1.4ms) DROP TABLE "dorsale_flyboy_tasks"
2187
+  (1.9ms) CREATE TABLE "dorsale_flyboy_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar, "name" varchar, "description" text, "progress" integer, "done" boolean, "term" date, "reminder" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_type" varchar, "owner_id" integer)
2188
+  (1.5ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_id" ON "dorsale_flyboy_tasks" ("taskable_id")
2189
+  (0.2ms) SELECT sql
2190
+ FROM sqlite_master
2191
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
2192
+ UNION ALL
2193
+ SELECT sql
2194
+ FROM sqlite_temp_master
2195
+ WHERE name='index_dorsale_flyboy_tasks_on_taskable_id' AND type='index'
2196
+
2197
+  (1.5ms) CREATE INDEX "index_dorsale_flyboy_tasks_on_taskable_type" ON "dorsale_flyboy_tasks" ("taskable_type")
2198
+  (2.0ms) DROP TABLE "dummy_models"
2199
+  (1.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2200
+  (1.4ms) DROP TABLE "taggings"
2201
+  (1.2ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
2202
+  (1.2ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
2203
+  (0.1ms)  SELECT sql
2204
+ FROM sqlite_master
2205
+ WHERE name='taggings_idx' AND type='index'
2206
+ UNION ALL
2207
+ SELECT sql
2208
+ FROM sqlite_temp_master
2209
+ WHERE name='taggings_idx' AND type='index'
2210
+ 
2211
+  (2.6ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
2212
+  (1.1ms) DROP TABLE "tags"
2213
+  (1.9ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)
2214
+  (1.3ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
2215
+  (1.6ms) DROP TABLE "users"
2216
+  (1.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "is_active" boolean, "avatar" varchar) 
2217
+  (1.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
2218
+  (0.1ms)  SELECT sql
2219
+ FROM sqlite_master
2220
+ WHERE name='index_users_on_email' AND type='index'
2221
+ UNION ALL
2222
+ SELECT sql
2223
+ FROM sqlite_temp_master
2224
+ WHERE name='index_users_on_email' AND type='index'
2225
+ 
2226
+  (1.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
2227
+  (0.2ms) SELECT version FROM "schema_migrations"
2228
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141010140200')
2229
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141014072756')
2230
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150312083147')
2231
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616074852')
2232
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622075000')
2233
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622075038')
2234
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622105217')
2235
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150623093218')
2236
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150625093326')
2237
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150625131155')
2238
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150803152643')
2239
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150805133509')
2240
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150805134318')
2241
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20151012181412')
2242
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20151019100134')
2243
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20151023135421')
2244
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20151103110115')
2245
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151116143024')
2246
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20151120122613')
2247
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20151126132304')
2248
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20151126142254')
2249
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151216104428')
2250
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20151216124705')
2251
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151230104012')
2252
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160104105725')
2253
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2254
+  (0.1ms) begin transaction
2255
+  (0.1ms) rollback transaction
2256
+  (0.1ms) begin transaction
2257
+  (0.1ms) rollback transaction
2258
+  (0.1ms) begin transaction
2259
+  (0.0ms) rollback transaction
2260
+  (0.1ms) begin transaction
2261
+  (0.1ms) rollback transaction
2262
+  (0.1ms) begin transaction
2263
+  (0.0ms) rollback transaction
2264
+  (0.1ms) begin transaction
2265
+  (0.2ms) rollback transaction
2266
+  (0.1ms) begin transaction
2267
+  (0.1ms) rollback transaction
2268
+  (0.1ms) begin transaction
2269
+  (0.1ms) SAVEPOINT active_record_1
2270
+ SQL (0.5ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Guerin SAS SARL"], ["short_name", "SN"], ["email", "alice@giraud.net"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://schmitt.info/alexis.guerin"], ["created_at", "2016-03-09 09:07:54.206211"], ["updated_at", "2016-03-09 09:07:54.206211"]]
2271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2272
+  (0.1ms) SAVEPOINT active_record_1
2273
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.236151"], ["updated_at", "2016-03-09 09:07:54.236151"]]
2274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2275
+  (0.0ms) SAVEPOINT active_record_1
2276
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term harum voluptate fuga"], ["created_at", "2016-03-09 09:07:54.241528"], ["updated_at", "2016-03-09 09:07:54.241528"]]
2277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2278
+  (0.1ms) SAVEPOINT active_record_1
2279
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.269158"], ["updated_at", "2016-03-09 09:07:54.269158"]]
2280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2281
+  (0.1ms) SAVEPOINT active_record_1
2282
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2283
+ SQL (0.4ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.289915"], ["updated_at", "2016-03-09 09:07:54.289915"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2285
+  (0.1ms) SAVEPOINT active_record_1
2286
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linenihil quia ipsa"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.295270"], ["updated_at", "2016-03-09 09:07:54.295270"]]
2287
+ Dorsale::BillingMachine::Quotation Load (0.2ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2288
+ Dorsale::BillingMachine::QuotationLine Load (0.2ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2289
+ Dorsale::BillingMachine::IdCard Load (0.3ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2290
+ SQL (0.2ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.314223"], ["id", 1]]
2291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2292
+  (1.3ms) rollback transaction
2293
+  (0.1ms) begin transaction
2294
+  (0.1ms) SAVEPOINT active_record_1
2295
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Perrot SAS SARL"], ["short_name", "SN"], ["email", "benjamin_philippe@lefebvre.eu"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://durand.net/thomas_laurent"], ["created_at", "2016-03-09 09:07:54.327665"], ["updated_at", "2016-03-09 09:07:54.327665"]]
2296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2297
+  (0.0ms) SAVEPOINT active_record_1
2298
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.330715"], ["updated_at", "2016-03-09 09:07:54.330715"]]
2299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2300
+  (0.0ms) SAVEPOINT active_record_1
2301
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term at ea sed"], ["created_at", "2016-03-09 09:07:54.332872"], ["updated_at", "2016-03-09 09:07:54.332872"]]
2302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2303
+  (0.1ms) SAVEPOINT active_record_1
2304
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.336108"], ["updated_at", "2016-03-09 09:07:54.336108"]]
2305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2306
+  (0.0ms) SAVEPOINT active_record_1
2307
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2308
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.339886"], ["updated_at", "2016-03-09 09:07:54.339886"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2309
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2310
+  (0.1ms) SAVEPOINT active_record_1
2311
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linevero quia voluptates"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.343978"], ["updated_at", "2016-03-09 09:07:54.343978"]]
2312
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2313
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2314
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2315
+ SQL (0.2ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.350271"], ["id", 1]]
2316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2317
+  (1.3ms) rollback transaction
2318
+  (0.1ms) begin transaction
2319
+  (0.1ms) SAVEPOINT active_record_1
2320
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Colin SEM SA"], ["short_name", "SN"], ["email", "clia_lucas@colin.com"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://guyot.com/alexandre"], ["created_at", "2016-03-09 09:07:54.359742"], ["updated_at", "2016-03-09 09:07:54.359742"]]
2321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2322
+  (0.1ms) SAVEPOINT active_record_1
2323
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.363679"], ["updated_at", "2016-03-09 09:07:54.363679"]]
2324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2325
+  (0.0ms) SAVEPOINT active_record_1
2326
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term blanditiis voluptates suscipit"], ["created_at", "2016-03-09 09:07:54.367039"], ["updated_at", "2016-03-09 09:07:54.367039"]]
2327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2328
+  (0.1ms) SAVEPOINT active_record_1
2329
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.371185"], ["updated_at", "2016-03-09 09:07:54.371185"]]
2330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2331
+  (0.0ms) SAVEPOINT active_record_1
2332
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2333
+ SQL (0.4ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.374996"], ["updated_at", "2016-03-09 09:07:54.374996"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2335
+  (0.1ms) SAVEPOINT active_record_1
2336
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linesunt dignissimos consequatur"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.378697"], ["updated_at", "2016-03-09 09:07:54.378697"]]
2337
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2338
+ Dorsale::BillingMachine::QuotationLine Load (0.2ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2339
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2340
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.384438"], ["id", 1]]
2341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2342
+  (0.9ms) rollback transaction
2343
+  (0.1ms) begin transaction
2344
+  (0.1ms) SAVEPOINT active_record_1
2345
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Marie EI EURL"], ["short_name", "SN"], ["email", "charlotte@pons.org"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://boyer.eu/anas"], ["created_at", "2016-03-09 09:07:54.393092"], ["updated_at", "2016-03-09 09:07:54.393092"]]
2346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2347
+  (0.0ms) SAVEPOINT active_record_1
2348
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.396166"], ["updated_at", "2016-03-09 09:07:54.396166"]]
2349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2350
+  (0.0ms) SAVEPOINT active_record_1
2351
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term aut nam cum"], ["created_at", "2016-03-09 09:07:54.398660"], ["updated_at", "2016-03-09 09:07:54.398660"]]
2352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2353
+  (0.0ms) SAVEPOINT active_record_1
2354
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.402277"], ["updated_at", "2016-03-09 09:07:54.402277"]]
2355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2356
+  (0.0ms) SAVEPOINT active_record_1
2357
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2358
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.407758"], ["updated_at", "2016-03-09 09:07:54.407758"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2360
+  (0.0ms) SAVEPOINT active_record_1
2361
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linequi vel nesciunt"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.410728"], ["updated_at", "2016-03-09 09:07:54.410728"]]
2362
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2363
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2364
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2365
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.415321"], ["id", 1]]
2366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2367
+  (0.9ms) rollback transaction
2368
+  (0.3ms) begin transaction
2369
+  (0.1ms) SAVEPOINT active_record_1
2370
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carre et Dumont GIE"], ["short_name", "SN"], ["email", "laura.marchal@brunet.name"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://joly.net/charlotte.robert"], ["created_at", "2016-03-09 09:07:54.425676"], ["updated_at", "2016-03-09 09:07:54.425676"]]
2371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2372
+  (0.0ms) SAVEPOINT active_record_1
2373
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.428854"], ["updated_at", "2016-03-09 09:07:54.428854"]]
2374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2375
+  (0.1ms) SAVEPOINT active_record_1
2376
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term est itaque dignissimos"], ["created_at", "2016-03-09 09:07:54.431510"], ["updated_at", "2016-03-09 09:07:54.431510"]]
2377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2378
+  (0.0ms) SAVEPOINT active_record_1
2379
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.434118"], ["updated_at", "2016-03-09 09:07:54.434118"]]
2380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2381
+  (0.1ms) SAVEPOINT active_record_1
2382
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2383
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.440300"], ["updated_at", "2016-03-09 09:07:54.440300"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2384
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2385
+  (0.0ms) SAVEPOINT active_record_1
2386
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linecorrupti dolorem culpa"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.443821"], ["updated_at", "2016-03-09 09:07:54.443821"]]
2387
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2388
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2389
+ Dorsale::BillingMachine::IdCard Load (0.0ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2390
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.448094"], ["id", 1]]
2391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2392
+  (1.0ms) rollback transaction
2393
+  (0.2ms) begin transaction
2394
+  (0.1ms) SAVEPOINT active_record_1
2395
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leclercq SAS EURL"], ["short_name", "SN"], ["email", "ocane@leroy.org"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://le.eu/maeva.riviere"], ["created_at", "2016-03-09 09:07:54.459998"], ["updated_at", "2016-03-09 09:07:54.459998"]]
2396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2397
+  (0.0ms) SAVEPOINT active_record_1
2398
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.463113"], ["updated_at", "2016-03-09 09:07:54.463113"]]
2399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2400
+  (0.1ms) SAVEPOINT active_record_1
2401
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term repellat dicta quis"], ["created_at", "2016-03-09 09:07:54.465886"], ["updated_at", "2016-03-09 09:07:54.465886"]]
2402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2403
+  (0.0ms) SAVEPOINT active_record_1
2404
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.468637"], ["updated_at", "2016-03-09 09:07:54.468637"]]
2405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2406
+  (0.0ms) SAVEPOINT active_record_1
2407
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2408
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.474555"], ["updated_at", "2016-03-09 09:07:54.474555"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2410
+  (0.0ms) SAVEPOINT active_record_1
2411
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineipsam quisquam qui"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.477789"], ["updated_at", "2016-03-09 09:07:54.477789"]]
2412
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2413
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2414
+ Dorsale::BillingMachine::IdCard Load (0.0ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2415
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.483612"], ["id", 1]]
2416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2417
+  (1.0ms) rollback transaction
2418
+  (0.1ms) begin transaction
2419
+  (0.1ms) SAVEPOINT active_record_1
2420
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Henry SCOP SCOP"], ["short_name", "SN"], ["email", "maeva.leroux@guerin.fr"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://vaeur.name/ocane_dupuis"], ["created_at", "2016-03-09 09:07:54.494265"], ["updated_at", "2016-03-09 09:07:54.494265"]]
2421
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2422
+  (0.1ms) SAVEPOINT active_record_1
2423
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.497482"], ["updated_at", "2016-03-09 09:07:54.497482"]]
2424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2425
+  (0.1ms) SAVEPOINT active_record_1
2426
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term illo molestiae laudantium"], ["created_at", "2016-03-09 09:07:54.500291"], ["updated_at", "2016-03-09 09:07:54.500291"]]
2427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2428
+  (0.1ms) SAVEPOINT active_record_1
2429
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.503807"], ["updated_at", "2016-03-09 09:07:54.503807"]]
2430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2431
+  (0.0ms) SAVEPOINT active_record_1
2432
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2433
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.508879"], ["updated_at", "2016-03-09 09:07:54.508879"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2435
+  (0.0ms) SAVEPOINT active_record_1
2436
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linelibero quia aut"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.512155"], ["updated_at", "2016-03-09 09:07:54.512155"]]
2437
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2438
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2439
+ Dorsale::BillingMachine::IdCard Load (0.0ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2440
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.516460"], ["id", 1]]
2441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2442
+  (1.1ms) rollback transaction
2443
+  (0.1ms) begin transaction
2444
+  (0.1ms) SAVEPOINT active_record_1
2445
+ SQL (0.5ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Pons et Arnaud EURL"], ["short_name", "SN"], ["email", "juliette@lecomte.info"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://prevost.eu/noah"], ["created_at", "2016-03-09 09:07:54.526906"], ["updated_at", "2016-03-09 09:07:54.526906"]]
2446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2447
+  (0.1ms) SAVEPOINT active_record_1
2448
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.531735"], ["updated_at", "2016-03-09 09:07:54.531735"]]
2449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2450
+  (0.0ms) SAVEPOINT active_record_1
2451
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term esse aperiam laboriosam"], ["created_at", "2016-03-09 09:07:54.534147"], ["updated_at", "2016-03-09 09:07:54.534147"]]
2452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2453
+  (0.2ms) SAVEPOINT active_record_1
2454
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.537523"], ["updated_at", "2016-03-09 09:07:54.537523"]]
2455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2456
+  (0.0ms) SAVEPOINT active_record_1
2457
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2458
+ SQL (0.4ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.542586"], ["updated_at", "2016-03-09 09:07:54.542586"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2460
+  (0.0ms) SAVEPOINT active_record_1
2461
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineconsequatur ullam vero"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.546435"], ["updated_at", "2016-03-09 09:07:54.546435"]]
2462
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2463
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2464
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2465
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.551200"], ["id", 1]]
2466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2467
+  (0.9ms) rollback transaction
2468
+  (0.1ms) begin transaction
2469
+  (0.1ms) SAVEPOINT active_record_1
2470
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carpentier et Renard SEM"], ["short_name", "SN"], ["email", "justine@brunet.name"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://gerard.com/enzo_richard"], ["created_at", "2016-03-09 09:07:54.561196"], ["updated_at", "2016-03-09 09:07:54.561196"]]
2471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2472
+  (0.1ms) SAVEPOINT active_record_1
2473
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.565428"], ["updated_at", "2016-03-09 09:07:54.565428"]]
2474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2475
+  (0.0ms) SAVEPOINT active_record_1
2476
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term qui quia quae"], ["created_at", "2016-03-09 09:07:54.568141"], ["updated_at", "2016-03-09 09:07:54.568141"]]
2477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2478
+  (0.3ms) SAVEPOINT active_record_1
2479
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.571721"], ["updated_at", "2016-03-09 09:07:54.571721"]]
2480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2481
+  (0.0ms) SAVEPOINT active_record_1
2482
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2483
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.576111"], ["updated_at", "2016-03-09 09:07:54.576111"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2485
+  (0.0ms) SAVEPOINT active_record_1
2486
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineveniam voluptatem blanditiis"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.579843"], ["updated_at", "2016-03-09 09:07:54.579843"]]
2487
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2488
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2489
+ Dorsale::BillingMachine::IdCard Load (0.0ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2490
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.583945"], ["id", 1]]
2491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2492
+  (1.0ms) rollback transaction
2493
+  (0.1ms) begin transaction
2494
+  (0.1ms) SAVEPOINT active_record_1
2495
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Martinez et Girard SA"], ["short_name", "SN"], ["email", "emilie@robert.com"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://rodriguez.name/lucas_schmitt"], ["created_at", "2016-03-09 09:07:54.592274"], ["updated_at", "2016-03-09 09:07:54.592274"]]
2496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2497
+  (0.1ms) SAVEPOINT active_record_1
2498
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:07:54.596708"], ["updated_at", "2016-03-09 09:07:54.596708"]]
2499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2500
+  (0.1ms) SAVEPOINT active_record_1
2501
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term neque ut voluptas"], ["created_at", "2016-03-09 09:07:54.600318"], ["updated_at", "2016-03-09 09:07:54.600318"]]
2502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2503
+  (0.1ms) SAVEPOINT active_record_1
2504
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:07:54.603304"], ["updated_at", "2016-03-09 09:07:54.603304"]]
2505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2506
+  (0.0ms) SAVEPOINT active_record_1
2507
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2508
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:07:54.608644"], ["updated_at", "2016-03-09 09:07:54.608644"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2510
+  (0.1ms) SAVEPOINT active_record_1
2511
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linerem nisi et"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:07:54.611694"], ["updated_at", "2016-03-09 09:07:54.611694"]]
2512
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2513
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2514
+ Dorsale::BillingMachine::IdCard Load (0.0ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2515
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:07:54.616395"], ["id", 1]]
2516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2517
+  (1.1ms) rollback transaction
2518
+  (0.2ms) begin transaction
2519
+  (0.1ms) rollback transaction
2520
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2521
+  (0.1ms) begin transaction
2522
+  (0.1ms) rollback transaction
2523
+  (0.1ms) begin transaction
2524
+  (0.1ms) rollback transaction
2525
+  (0.1ms) begin transaction
2526
+  (0.1ms) rollback transaction
2527
+  (0.1ms) begin transaction
2528
+  (0.0ms) rollback transaction
2529
+  (0.1ms) begin transaction
2530
+  (0.1ms) rollback transaction
2531
+  (0.1ms) begin transaction
2532
+  (0.1ms) rollback transaction
2533
+  (0.1ms) begin transaction
2534
+  (0.1ms) rollback transaction
2535
+  (0.1ms) begin transaction
2536
+  (0.1ms) SAVEPOINT active_record_1
2537
+ SQL (0.5ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Bourgeois et Gerard SARL"], ["short_name", "SN"], ["email", "lina_schmitt@olivier.org"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://philippe.org/louis"], ["created_at", "2016-03-09 09:08:08.573510"], ["updated_at", "2016-03-09 09:08:08.573510"]]
2538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2539
+  (0.1ms) SAVEPOINT active_record_1
2540
+ SQL (0.6ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.603665"], ["updated_at", "2016-03-09 09:08:08.603665"]]
2541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2542
+  (0.0ms) SAVEPOINT active_record_1
2543
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term pariatur natus nisi"], ["created_at", "2016-03-09 09:08:08.609168"], ["updated_at", "2016-03-09 09:08:08.609168"]]
2544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2545
+  (0.1ms) SAVEPOINT active_record_1
2546
+ SQL (0.4ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.637008"], ["updated_at", "2016-03-09 09:08:08.637008"]]
2547
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2548
+  (0.1ms) SAVEPOINT active_record_1
2549
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2550
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.658054"], ["updated_at", "2016-03-09 09:08:08.658054"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2552
+  (0.0ms) SAVEPOINT active_record_1
2553
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linefuga voluptatem ut"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.662707"], ["updated_at", "2016-03-09 09:08:08.662707"]]
2554
+ Dorsale::BillingMachine::Quotation Load (0.3ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2555
+ Dorsale::BillingMachine::QuotationLine Load (0.3ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2556
+ Dorsale::BillingMachine::IdCard Load (0.2ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2557
+ SQL (0.2ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.677880"], ["id", 1]]
2558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2559
+  (2.3ms) rollback transaction
2560
+  (0.1ms) begin transaction
2561
+  (0.1ms) SAVEPOINT active_record_1
2562
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Fontaine SEM EI"], ["short_name", "SN"], ["email", "laura@blanc.info"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://duval.name/lucie"], ["created_at", "2016-03-09 09:08:08.692302"], ["updated_at", "2016-03-09 09:08:08.692302"]]
2563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2564
+  (0.0ms) SAVEPOINT active_record_1
2565
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.695602"], ["updated_at", "2016-03-09 09:08:08.695602"]]
2566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2567
+  (0.1ms) SAVEPOINT active_record_1
2568
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term quia quibusdam vel"], ["created_at", "2016-03-09 09:08:08.699413"], ["updated_at", "2016-03-09 09:08:08.699413"]]
2569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2570
+  (0.0ms) SAVEPOINT active_record_1
2571
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.702007"], ["updated_at", "2016-03-09 09:08:08.702007"]]
2572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2573
+  (0.0ms) SAVEPOINT active_record_1
2574
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2575
+ SQL (0.4ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.706597"], ["updated_at", "2016-03-09 09:08:08.706597"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2577
+  (0.1ms) SAVEPOINT active_record_1
2578
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineex est fugit"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.710574"], ["updated_at", "2016-03-09 09:08:08.710574"]]
2579
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2580
+ Dorsale::BillingMachine::QuotationLine Load (0.2ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2581
+ Dorsale::BillingMachine::IdCard Load (0.2ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2582
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.719018"], ["id", 1]]
2583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2584
+  (1.0ms) rollback transaction
2585
+  (0.1ms) begin transaction
2586
+  (0.1ms) SAVEPOINT active_record_1
2587
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dupuis EURL GIE"], ["short_name", "SN"], ["email", "elisa.riviere@vaeur.name"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://pons.fr/axel.julien"], ["created_at", "2016-03-09 09:08:08.726995"], ["updated_at", "2016-03-09 09:08:08.726995"]]
2588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2589
+  (0.0ms) SAVEPOINT active_record_1
2590
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.730441"], ["updated_at", "2016-03-09 09:08:08.730441"]]
2591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2592
+  (0.1ms) SAVEPOINT active_record_1
2593
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term eos ut veniam"], ["created_at", "2016-03-09 09:08:08.733712"], ["updated_at", "2016-03-09 09:08:08.733712"]]
2594
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2595
+  (0.0ms) SAVEPOINT active_record_1
2596
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.736603"], ["updated_at", "2016-03-09 09:08:08.736603"]]
2597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2598
+  (0.0ms) SAVEPOINT active_record_1
2599
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2600
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.740394"], ["updated_at", "2016-03-09 09:08:08.740394"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2602
+  (0.1ms) SAVEPOINT active_record_1
2603
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineassumenda esse suscipit"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.745396"], ["updated_at", "2016-03-09 09:08:08.745396"]]
2604
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2605
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2606
+ Dorsale::BillingMachine::IdCard Load (0.2ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2607
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.751827"], ["id", 1]]
2608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2609
+  (0.9ms) rollback transaction
2610
+  (0.1ms) begin transaction
2611
+  (0.1ms) SAVEPOINT active_record_1
2612
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Barre SA SCOP"], ["short_name", "SN"], ["email", "ines_marchal@le.eu"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://petit.org/benjamin_fernandez"], ["created_at", "2016-03-09 09:08:08.759654"], ["updated_at", "2016-03-09 09:08:08.759654"]]
2613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2614
+  (0.0ms) SAVEPOINT active_record_1
2615
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.762702"], ["updated_at", "2016-03-09 09:08:08.762702"]]
2616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2617
+  (0.1ms) SAVEPOINT active_record_1
2618
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term beatae dolorem quidem"], ["created_at", "2016-03-09 09:08:08.765409"], ["updated_at", "2016-03-09 09:08:08.765409"]]
2619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2620
+  (0.0ms) SAVEPOINT active_record_1
2621
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.769788"], ["updated_at", "2016-03-09 09:08:08.769788"]]
2622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2623
+  (0.0ms) SAVEPOINT active_record_1
2624
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2625
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.773441"], ["updated_at", "2016-03-09 09:08:08.773441"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2627
+  (0.1ms) SAVEPOINT active_record_1
2628
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linefacere quasi esse"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.777371"], ["updated_at", "2016-03-09 09:08:08.777371"]]
2629
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2630
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2631
+ Dorsale::BillingMachine::IdCard Load (0.2ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2632
+ SQL (0.2ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.784045"], ["id", 1]]
2633
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2634
+  (0.9ms) rollback transaction
2635
+  (0.1ms) begin transaction
2636
+  (0.1ms) SAVEPOINT active_record_1
2637
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Guillot EI SCOP"], ["short_name", "SN"], ["email", "raphal@leclerc.eu"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://rolland.name/nathan"], ["created_at", "2016-03-09 09:08:08.793853"], ["updated_at", "2016-03-09 09:08:08.793853"]]
2638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2639
+  (0.0ms) SAVEPOINT active_record_1
2640
+ SQL (0.6ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.797322"], ["updated_at", "2016-03-09 09:08:08.797322"]]
2641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2642
+  (0.1ms) SAVEPOINT active_record_1
2643
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term molestiae facilis facere"], ["created_at", "2016-03-09 09:08:08.802115"], ["updated_at", "2016-03-09 09:08:08.802115"]]
2644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2645
+  (0.1ms) SAVEPOINT active_record_1
2646
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.804731"], ["updated_at", "2016-03-09 09:08:08.804731"]]
2647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2648
+  (0.1ms) SAVEPOINT active_record_1
2649
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2650
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.808927"], ["updated_at", "2016-03-09 09:08:08.808927"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2651
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2652
+  (0.0ms) SAVEPOINT active_record_1
2653
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineexpedita beatae corporis"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.812853"], ["updated_at", "2016-03-09 09:08:08.812853"]]
2654
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2655
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2656
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2657
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.819941"], ["id", 1]]
2658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2659
+  (1.0ms) rollback transaction
2660
+  (0.1ms) begin transaction
2661
+  (0.1ms) SAVEPOINT active_record_1
2662
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Paris et Leclerc EURL"], ["short_name", "SN"], ["email", "pauline@fernandez.org"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://sanchez.fr/manon.marie"], ["created_at", "2016-03-09 09:08:08.831092"], ["updated_at", "2016-03-09 09:08:08.831092"]]
2663
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2664
+  (0.1ms) SAVEPOINT active_record_1
2665
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.836883"], ["updated_at", "2016-03-09 09:08:08.836883"]]
2666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2667
+  (0.0ms) SAVEPOINT active_record_1
2668
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term distinctio ex soluta"], ["created_at", "2016-03-09 09:08:08.839749"], ["updated_at", "2016-03-09 09:08:08.839749"]]
2669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2670
+  (0.0ms) SAVEPOINT active_record_1
2671
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.842362"], ["updated_at", "2016-03-09 09:08:08.842362"]]
2672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2673
+  (0.0ms) SAVEPOINT active_record_1
2674
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2675
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.846128"], ["updated_at", "2016-03-09 09:08:08.846128"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2676
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2677
+  (0.0ms) SAVEPOINT active_record_1
2678
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linequia odit ea"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.850753"], ["updated_at", "2016-03-09 09:08:08.850753"]]
2679
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2680
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2681
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2682
+ SQL (0.2ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.857101"], ["id", 1]]
2683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2684
+  (1.0ms) rollback transaction
2685
+  (0.1ms) begin transaction
2686
+  (0.1ms) SAVEPOINT active_record_1
2687
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Leroux EI SEM"], ["short_name", "SN"], ["email", "mathilde@berger.org"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://nicolas.info/nathan.marty"], ["created_at", "2016-03-09 09:08:08.870103"], ["updated_at", "2016-03-09 09:08:08.870103"]]
2688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2689
+  (0.1ms) SAVEPOINT active_record_1
2690
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.873694"], ["updated_at", "2016-03-09 09:08:08.873694"]]
2691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2692
+  (0.0ms) SAVEPOINT active_record_1
2693
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term doloribus quia aut"], ["created_at", "2016-03-09 09:08:08.876034"], ["updated_at", "2016-03-09 09:08:08.876034"]]
2694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2695
+  (0.1ms) SAVEPOINT active_record_1
2696
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.878495"], ["updated_at", "2016-03-09 09:08:08.878495"]]
2697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2698
+  (0.3ms) SAVEPOINT active_record_1
2699
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2700
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.884054"], ["updated_at", "2016-03-09 09:08:08.884054"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2702
+  (0.1ms) SAVEPOINT active_record_1
2703
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineest error temporibus"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.888241"], ["updated_at", "2016-03-09 09:08:08.888241"]]
2704
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2705
+ Dorsale::BillingMachine::QuotationLine Load (0.2ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2706
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2707
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.894635"], ["id", 1]]
2708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2709
+  (0.9ms) rollback transaction
2710
+  (0.2ms) begin transaction
2711
+  (0.1ms) SAVEPOINT active_record_1
2712
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Masson EURL SA"], ["short_name", "SN"], ["email", "maeva_durand@baron.name"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://richard.info/charlotte"], ["created_at", "2016-03-09 09:08:08.904861"], ["updated_at", "2016-03-09 09:08:08.904861"]]
2713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2714
+  (0.0ms) SAVEPOINT active_record_1
2715
+ SQL (0.5ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.907987"], ["updated_at", "2016-03-09 09:08:08.907987"]]
2716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2717
+  (0.1ms) SAVEPOINT active_record_1
2718
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term ipsum quis et"], ["created_at", "2016-03-09 09:08:08.911562"], ["updated_at", "2016-03-09 09:08:08.911562"]]
2719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2720
+  (0.2ms) SAVEPOINT active_record_1
2721
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.914652"], ["updated_at", "2016-03-09 09:08:08.914652"]]
2722
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2723
+  (0.0ms) SAVEPOINT active_record_1
2724
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2725
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.919155"], ["updated_at", "2016-03-09 09:08:08.919155"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2727
+  (0.0ms) SAVEPOINT active_record_1
2728
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linedolores alias et"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.922575"], ["updated_at", "2016-03-09 09:08:08.922575"]]
2729
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2730
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2731
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2732
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.928495"], ["id", 1]]
2733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2734
+  (1.2ms) rollback transaction
2735
+  (0.1ms) begin transaction
2736
+  (0.1ms) SAVEPOINT active_record_1
2737
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Mercier SA SARL"], ["short_name", "SN"], ["email", "lilou_roger@colin.fr"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://hubert.org/jules"], ["created_at", "2016-03-09 09:08:08.939483"], ["updated_at", "2016-03-09 09:08:08.939483"]]
2738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2739
+  (0.0ms) SAVEPOINT active_record_1
2740
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.943550"], ["updated_at", "2016-03-09 09:08:08.943550"]]
2741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2742
+  (0.0ms) SAVEPOINT active_record_1
2743
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term quos molestias sint"], ["created_at", "2016-03-09 09:08:08.946037"], ["updated_at", "2016-03-09 09:08:08.946037"]]
2744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2745
+  (0.0ms) SAVEPOINT active_record_1
2746
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.948547"], ["updated_at", "2016-03-09 09:08:08.948547"]]
2747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2748
+  (0.0ms) SAVEPOINT active_record_1
2749
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2750
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.953293"], ["updated_at", "2016-03-09 09:08:08.953293"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2752
+  (0.1ms) SAVEPOINT active_record_1
2753
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linequi aut et"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.956945"], ["updated_at", "2016-03-09 09:08:08.956945"]]
2754
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2755
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2756
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2757
+ SQL (0.2ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.963890"], ["id", 1]]
2758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2759
+  (0.9ms) rollback transaction
2760
+  (0.1ms) begin transaction
2761
+  (0.1ms) SAVEPOINT active_record_1
2762
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Riviere et Perrot EI"], ["short_name", "SN"], ["email", "mlia.rey@aubert.com"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://lemoine.com/clia"], ["created_at", "2016-03-09 09:08:08.973234"], ["updated_at", "2016-03-09 09:08:08.973234"]]
2763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2764
+  (0.0ms) SAVEPOINT active_record_1
2765
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:08.976579"], ["updated_at", "2016-03-09 09:08:08.976579"]]
2766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2767
+  (0.1ms) SAVEPOINT active_record_1
2768
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term ut et optio"], ["created_at", "2016-03-09 09:08:08.979093"], ["updated_at", "2016-03-09 09:08:08.979093"]]
2769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2770
+  (0.1ms) SAVEPOINT active_record_1
2771
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:08.982626"], ["updated_at", "2016-03-09 09:08:08.982626"]]
2772
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2773
+  (0.0ms) SAVEPOINT active_record_1
2774
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2775
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:08.988012"], ["updated_at", "2016-03-09 09:08:08.988012"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2777
+  (0.1ms) SAVEPOINT active_record_1
2778
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linedeleniti est minima"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:08.991330"], ["updated_at", "2016-03-09 09:08:08.991330"]]
2779
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2780
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2781
+ Dorsale::BillingMachine::IdCard Load (0.0ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2782
+ SQL (0.2ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:08.995959"], ["id", 1]]
2783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2784
+  (1.2ms) rollback transaction
2785
+  (0.2ms) begin transaction
2786
+  (0.1ms) rollback transaction
2787
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2788
+  (0.1ms) begin transaction
2789
+  (0.1ms) rollback transaction
2790
+  (0.1ms) begin transaction
2791
+  (0.1ms) rollback transaction
2792
+  (0.1ms) begin transaction
2793
+  (0.1ms) rollback transaction
2794
+  (0.1ms) begin transaction
2795
+  (0.0ms) rollback transaction
2796
+  (0.1ms) begin transaction
2797
+  (0.0ms) rollback transaction
2798
+  (0.0ms) begin transaction
2799
+  (0.1ms) rollback transaction
2800
+  (0.1ms) begin transaction
2801
+  (0.1ms) rollback transaction
2802
+  (0.1ms) begin transaction
2803
+  (0.1ms) SAVEPOINT active_record_1
2804
+ SQL (0.5ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Hubert et Mathieu SARL"], ["short_name", "SN"], ["email", "tho@mathieu.net"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://schneider.org/paul_lambert"], ["created_at", "2016-03-09 09:08:49.482515"], ["updated_at", "2016-03-09 09:08:49.482515"]]
2805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2806
+  (0.1ms) SAVEPOINT active_record_1
2807
+ SQL (0.6ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.515184"], ["updated_at", "2016-03-09 09:08:49.515184"]]
2808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2809
+  (0.1ms) SAVEPOINT active_record_1
2810
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term voluptatem tempore modi"], ["created_at", "2016-03-09 09:08:49.523050"], ["updated_at", "2016-03-09 09:08:49.523050"]]
2811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2812
+  (0.1ms) SAVEPOINT active_record_1
2813
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.557540"], ["updated_at", "2016-03-09 09:08:49.557540"]]
2814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2815
+  (0.1ms) SAVEPOINT active_record_1
2816
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2817
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.580806"], ["updated_at", "2016-03-09 09:08:49.580806"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2819
+  (0.1ms) SAVEPOINT active_record_1
2820
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linepraesentium reiciendis ea"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.585406"], ["updated_at", "2016-03-09 09:08:49.585406"]]
2821
+ Dorsale::BillingMachine::Quotation Load (0.2ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2822
+ Dorsale::BillingMachine::QuotationLine Load (0.2ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2823
+ Dorsale::BillingMachine::IdCard Load (0.2ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2824
+ SQL (0.2ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.600594"], ["id", 1]]
2825
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2826
+  (1.0ms) rollback transaction
2827
+  (0.1ms) begin transaction
2828
+  (0.1ms) SAVEPOINT active_record_1
2829
+ SQL (0.5ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Dumont et Fleury EI"], ["short_name", "SN"], ["email", "paul_lacroix@chevalier.org"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://colin.org/yanis_dufour"], ["created_at", "2016-03-09 09:08:49.613653"], ["updated_at", "2016-03-09 09:08:49.613653"]]
2830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2831
+  (0.0ms) SAVEPOINT active_record_1
2832
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.617196"], ["updated_at", "2016-03-09 09:08:49.617196"]]
2833
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2834
+  (0.1ms) SAVEPOINT active_record_1
2835
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term inventore dolores blanditiis"], ["created_at", "2016-03-09 09:08:49.620221"], ["updated_at", "2016-03-09 09:08:49.620221"]]
2836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2837
+  (0.1ms) SAVEPOINT active_record_1
2838
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.622908"], ["updated_at", "2016-03-09 09:08:49.622908"]]
2839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2840
+  (0.0ms) SAVEPOINT active_record_1
2841
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2842
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.628237"], ["updated_at", "2016-03-09 09:08:49.628237"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2843
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2844
+  (0.1ms) SAVEPOINT active_record_1
2845
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linenon earum ducimus"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.632897"], ["updated_at", "2016-03-09 09:08:49.632897"]]
2846
+ Dorsale::BillingMachine::Quotation Load (0.0ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2847
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2848
+ Dorsale::BillingMachine::IdCard Load (0.0ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2849
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.638496"], ["id", 1]]
2850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2851
+  (0.9ms) rollback transaction
2852
+  (0.1ms) begin transaction
2853
+  (0.1ms) SAVEPOINT active_record_1
2854
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jean SARL SEM"], ["short_name", "SN"], ["email", "camille_paul@poirier.com"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://bonnet.com/alicia"], ["created_at", "2016-03-09 09:08:49.646452"], ["updated_at", "2016-03-09 09:08:49.646452"]]
2855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2856
+  (0.0ms) SAVEPOINT active_record_1
2857
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.651662"], ["updated_at", "2016-03-09 09:08:49.651662"]]
2858
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2859
+  (0.0ms) SAVEPOINT active_record_1
2860
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term quis debitis corporis"], ["created_at", "2016-03-09 09:08:49.654137"], ["updated_at", "2016-03-09 09:08:49.654137"]]
2861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2862
+  (0.0ms) SAVEPOINT active_record_1
2863
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.656560"], ["updated_at", "2016-03-09 09:08:49.656560"]]
2864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2865
+  (0.0ms) SAVEPOINT active_record_1
2866
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2867
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.660398"], ["updated_at", "2016-03-09 09:08:49.660398"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2869
+  (0.1ms) SAVEPOINT active_record_1
2870
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineea debitis maiores"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.664325"], ["updated_at", "2016-03-09 09:08:49.664325"]]
2871
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2872
+ Dorsale::BillingMachine::QuotationLine Load (0.2ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2873
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2874
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.670981"], ["id", 1]]
2875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2876
+  (0.9ms) rollback transaction
2877
+  (0.1ms) begin transaction
2878
+  (0.1ms) SAVEPOINT active_record_1
2879
+ SQL (0.6ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Jacquet SA EI"], ["short_name", "SN"], ["email", "jeanne@blanchard.fr"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://pierre.fr/axel.collet"], ["created_at", "2016-03-09 09:08:49.679546"], ["updated_at", "2016-03-09 09:08:49.679546"]]
2880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2881
+  (0.1ms) SAVEPOINT active_record_1
2882
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.684999"], ["updated_at", "2016-03-09 09:08:49.684999"]]
2883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2884
+  (0.0ms) SAVEPOINT active_record_1
2885
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term aut odio nostrum"], ["created_at", "2016-03-09 09:08:49.688614"], ["updated_at", "2016-03-09 09:08:49.688614"]]
2886
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2887
+  (0.0ms) SAVEPOINT active_record_1
2888
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.691003"], ["updated_at", "2016-03-09 09:08:49.691003"]]
2889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2890
+  (0.0ms) SAVEPOINT active_record_1
2891
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2892
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.696025"], ["updated_at", "2016-03-09 09:08:49.696025"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2893
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2894
+  (0.1ms) SAVEPOINT active_record_1
2895
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linesimilique repellendus et"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.700594"], ["updated_at", "2016-03-09 09:08:49.700594"]]
2896
+ Dorsale::BillingMachine::Quotation Load (0.2ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2897
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2898
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2899
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.706811"], ["id", 1]]
2900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2901
+  (0.9ms) rollback transaction
2902
+  (0.1ms) begin transaction
2903
+  (0.1ms) SAVEPOINT active_record_1
2904
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Garnier et Lacroix EURL"], ["short_name", "SN"], ["email", "clia.fernandez@dumas.info"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://dubois.net/emilie"], ["created_at", "2016-03-09 09:08:49.717364"], ["updated_at", "2016-03-09 09:08:49.717364"]]
2905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2906
+  (0.0ms) SAVEPOINT active_record_1
2907
+ SQL (0.5ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.720576"], ["updated_at", "2016-03-09 09:08:49.720576"]]
2908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2909
+  (0.1ms) SAVEPOINT active_record_1
2910
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term aut ab sed"], ["created_at", "2016-03-09 09:08:49.724221"], ["updated_at", "2016-03-09 09:08:49.724221"]]
2911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2912
+  (0.0ms) SAVEPOINT active_record_1
2913
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.726907"], ["updated_at", "2016-03-09 09:08:49.726907"]]
2914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2915
+  (0.0ms) SAVEPOINT active_record_1
2916
+  (0.2ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2917
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.730654"], ["updated_at", "2016-03-09 09:08:49.730654"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2919
+  (0.1ms) SAVEPOINT active_record_1
2920
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linequas voluptas ipsam"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.735000"], ["updated_at", "2016-03-09 09:08:49.735000"]]
2921
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2922
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2923
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2924
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.741288"], ["id", 1]]
2925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2926
+  (0.9ms) rollback transaction
2927
+  (0.2ms) begin transaction
2928
+  (0.1ms) SAVEPOINT active_record_1
2929
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Carpentier EURL SAS"], ["short_name", "SN"], ["email", "marie.schmitt@henry.name"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://michel.eu/julie"], ["created_at", "2016-03-09 09:08:49.753077"], ["updated_at", "2016-03-09 09:08:49.753077"]]
2930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2931
+  (0.0ms) SAVEPOINT active_record_1
2932
+ SQL (0.4ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.756533"], ["updated_at", "2016-03-09 09:08:49.756533"]]
2933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2934
+  (0.1ms) SAVEPOINT active_record_1
2935
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term sed enim facere"], ["created_at", "2016-03-09 09:08:49.760077"], ["updated_at", "2016-03-09 09:08:49.760077"]]
2936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2937
+  (0.1ms) SAVEPOINT active_record_1
2938
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.763657"], ["updated_at", "2016-03-09 09:08:49.763657"]]
2939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2940
+  (0.0ms) SAVEPOINT active_record_1
2941
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2942
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.768281"], ["updated_at", "2016-03-09 09:08:49.768281"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2943
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2944
+  (0.1ms) SAVEPOINT active_record_1
2945
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation linequo et eaque"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.772553"], ["updated_at", "2016-03-09 09:08:49.772553"]]
2946
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2947
+ Dorsale::BillingMachine::QuotationLine Load (0.2ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2948
+ Dorsale::BillingMachine::IdCard Load (0.2ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2949
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.778820"], ["id", 1]]
2950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2951
+  (1.0ms) rollback transaction
2952
+  (0.1ms) begin transaction
2953
+  (0.1ms) SAVEPOINT active_record_1
2954
+ SQL (0.4ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Roche SEM EURL"], ["short_name", "SN"], ["email", "valentin.durand@leroux.com"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://louis.com/paul"], ["created_at", "2016-03-09 09:08:49.789740"], ["updated_at", "2016-03-09 09:08:49.789740"]]
2955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2956
+  (0.0ms) SAVEPOINT active_record_1
2957
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.793023"], ["updated_at", "2016-03-09 09:08:49.793023"]]
2958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2959
+  (0.1ms) SAVEPOINT active_record_1
2960
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term incidunt molestiae quia"], ["created_at", "2016-03-09 09:08:49.795841"], ["updated_at", "2016-03-09 09:08:49.795841"]]
2961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2962
+  (0.1ms) SAVEPOINT active_record_1
2963
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.799426"], ["updated_at", "2016-03-09 09:08:49.799426"]]
2964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2965
+  (0.0ms) SAVEPOINT active_record_1
2966
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2967
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.804000"], ["updated_at", "2016-03-09 09:08:49.804000"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2969
+  (0.1ms) SAVEPOINT active_record_1
2970
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineiusto sit odio"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.809010"], ["updated_at", "2016-03-09 09:08:49.809010"]]
2971
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2972
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2973
+ Dorsale::BillingMachine::IdCard Load (0.0ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2974
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.817265"], ["id", 1]]
2975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2976
+  (1.0ms) rollback transaction
2977
+  (0.1ms) begin transaction
2978
+  (0.1ms) SAVEPOINT active_record_1
2979
+ SQL (0.3ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Royer et Nguyen EI"], ["short_name", "SN"], ["email", "alexis@berger.com"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://adam.net/pauline_lucas"], ["created_at", "2016-03-09 09:08:49.825583"], ["updated_at", "2016-03-09 09:08:49.825583"]]
2980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2981
+  (0.1ms) SAVEPOINT active_record_1
2982
+ SQL (1.5ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.829608"], ["updated_at", "2016-03-09 09:08:49.829608"]]
2983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2984
+  (0.1ms) SAVEPOINT active_record_1
2985
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term consequatur ex neque"], ["created_at", "2016-03-09 09:08:49.834764"], ["updated_at", "2016-03-09 09:08:49.834764"]]
2986
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2987
+  (0.0ms) SAVEPOINT active_record_1
2988
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.838070"], ["updated_at", "2016-03-09 09:08:49.838070"]]
2989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2990
+  (0.0ms) SAVEPOINT active_record_1
2991
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
2992
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.842004"], ["updated_at", "2016-03-09 09:08:49.842004"], ["unique_index", 1], ["tracking_id", "2014-01"]]
2993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2994
+  (0.1ms) SAVEPOINT active_record_1
2995
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineid doloribus occaecati"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.846608"], ["updated_at", "2016-03-09 09:08:49.846608"]]
2996
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
2997
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
2998
+ Dorsale::BillingMachine::IdCard Load (0.0ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
2999
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.853493"], ["id", 1]]
3000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3001
+  (1.1ms) rollback transaction
3002
+  (0.1ms) begin transaction
3003
+  (0.1ms) SAVEPOINT active_record_1
3004
+ SQL (0.6ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Robert et Vidal EURL"], ["short_name", "SN"], ["email", "adam@schmitt.fr"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://leroux.name/laura"], ["created_at", "2016-03-09 09:08:49.862454"], ["updated_at", "2016-03-09 09:08:49.862454"]]
3005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3006
+  (0.1ms) SAVEPOINT active_record_1
3007
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.868010"], ["updated_at", "2016-03-09 09:08:49.868010"]]
3008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3009
+  (0.0ms) SAVEPOINT active_record_1
3010
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term alias rerum labore"], ["created_at", "2016-03-09 09:08:49.870458"], ["updated_at", "2016-03-09 09:08:49.870458"]]
3011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3012
+  (0.0ms) SAVEPOINT active_record_1
3013
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.872795"], ["updated_at", "2016-03-09 09:08:49.872795"]]
3014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3015
+  (0.0ms) SAVEPOINT active_record_1
3016
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
3017
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.876959"], ["updated_at", "2016-03-09 09:08:49.876959"], ["unique_index", 1], ["tracking_id", "2014-01"]]
3018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3019
+  (0.2ms) SAVEPOINT active_record_1
3020
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineconsequuntur delectus quae"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.881586"], ["updated_at", "2016-03-09 09:08:49.881586"]]
3021
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
3022
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
3023
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
3024
+ SQL (0.1ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.888185"], ["id", 1]]
3025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3026
+  (0.9ms) rollback transaction
3027
+  (0.1ms) begin transaction
3028
+  (0.1ms) SAVEPOINT active_record_1
3029
+ SQL (0.7ms) INSERT INTO "dorsale_customer_vault_corporations" ("name", "short_name", "email", "phone", "fax", "www", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "David SCOP EI"], ["short_name", "SN"], ["email", "manon@lemaire.info"], ["phone", "06 xx xx xx xx"], ["fax", "09 xx xx xx xx"], ["www", "http://paris.net/paul_vincent"], ["created_at", "2016-03-09 09:08:49.896848"], ["updated_at", "2016-03-09 09:08:49.896848"]]
3030
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3031
+  (0.0ms) SAVEPOINT active_record_1
3032
+ SQL (0.3ms) INSERT INTO "dorsale_addresses" ("street", "street_bis", "city", "zip", "country", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "3 Rue Marx Dormoy"], ["street_bis", "1er étage"], ["city", "Marseille"], ["zip", "13004"], ["country", "France"], ["addressable_id", 1], ["addressable_type", "Dorsale::CustomerVault::Corporation"], ["created_at", "2016-03-09 09:08:49.901757"], ["updated_at", "2016-03-09 09:08:49.901757"]]
3033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3034
+  (0.0ms) SAVEPOINT active_record_1
3035
+ SQL (0.1ms) INSERT INTO "dorsale_billing_machine_payment_terms" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "Payment term quaerat maxime laudantium"], ["created_at", "2016-03-09 09:08:49.904462"], ["updated_at", "2016-03-09 09:08:49.904462"]]
3036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3037
+  (0.0ms) SAVEPOINT active_record_1
3038
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_id_cards" ("id_card_name", "entity_name", "legal_form", "capital", "registration_city", "registration_number", "ape_naf", "address1", "zip", "city", "siret", "intracommunity_vat", "contact_full_name", "contact_phone", "contact_fax", "contact_email", "iban", "bic_swift", "bank_name", "bank_address", "custom_info_1", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["id_card_name", "AGILiDEE"], ["entity_name", "AGILiDEE"], ["legal_form", "SA"], ["capital", 1000000000], ["registration_city", "Gotham City"], ["registration_number", "123456789"], ["ape_naf", "6258"], ["address1", "72 rue du ROR"], ["zip", "72054"], ["city", "Kaukura"], ["siret", "FR 1234569123"], ["intracommunity_vat", "123456789123"], ["contact_full_name", "Bozo LECLOWN"], ["contact_phone", "0400000000"], ["contact_fax", "+33 400000000"], ["contact_email", "bozo_leclown@pinder.com"], ["iban", "FR 456 253 645 459"], ["bic_swift", "PSSTTHEGAME"], ["bank_name", "My Bank Name"], ["bank_address", "My Bank Addresse"], ["custom_info_1", "Long string to trigger a line break and test the layout in the invoice PDF generators"], ["created_at", "2016-03-09 09:08:49.906774"], ["updated_at", "2016-03-09 09:08:49.906774"]]
3039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3040
+  (0.0ms) SAVEPOINT active_record_1
3041
+  (0.1ms) SELECT "dorsale_billing_machine_quotations"."unique_index" FROM "dorsale_billing_machine_quotations"
3042
+ SQL (0.3ms) INSERT INTO "dorsale_billing_machine_quotations" ("state", "date", "expires_at", "commercial_discount", "vat_amount", "customer_id", "customer_type", "payment_term_id", "id_card_id", "label", "comments", "total_excluding_taxes", "total_including_taxes", "created_at", "updated_at", "unique_index", "tracking_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["state", "pending"], ["date", "2014-02-19"], ["expires_at", "2016-04-09"], ["commercial_discount", 0.0], ["vat_amount", 0.0], ["customer_id", 1], ["customer_type", "Dorsale::CustomerVault::Corporation"], ["payment_term_id", 1], ["id_card_id", 1], ["label", "Software service"], ["comments", "This is the quotation for the software your companie want"], ["total_excluding_taxes", 0.0], ["total_including_taxes", 0.0], ["created_at", "2016-03-09 09:08:49.911950"], ["updated_at", "2016-03-09 09:08:49.911950"], ["unique_index", 1], ["tracking_id", "2014-01"]]
3043
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3044
+  (0.1ms) SAVEPOINT active_record_1
3045
+ SQL (0.2ms) INSERT INTO "dorsale_billing_machine_quotation_lines" ("quantity", "unit_price", "vat_rate", "quotation_id", "label", "unit", "total", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["quantity", 1000.17], ["unit_price", 20.0], ["vat_rate", 20.0], ["quotation_id", 1], ["label", "Quotation lineet saepe ut"], ["unit", "abc"], ["total", 20003.4], ["created_at", "2016-03-09 09:08:49.915959"], ["updated_at", "2016-03-09 09:08:49.915959"]]
3046
+ Dorsale::BillingMachine::Quotation Load (0.1ms) SELECT "dorsale_billing_machine_quotations".* FROM "dorsale_billing_machine_quotations" WHERE "dorsale_billing_machine_quotations"."id" = ? LIMIT 1 [["id", 1]]
3047
+ Dorsale::BillingMachine::QuotationLine Load (0.1ms) SELECT "dorsale_billing_machine_quotation_lines".* FROM "dorsale_billing_machine_quotation_lines" WHERE "dorsale_billing_machine_quotation_lines"."quotation_id" = ? ORDER BY "dorsale_billing_machine_quotation_lines"."created_at" ASC [["quotation_id", 1]]
3048
+ Dorsale::BillingMachine::IdCard Load (0.1ms) SELECT "dorsale_billing_machine_id_cards".* FROM "dorsale_billing_machine_id_cards" WHERE "dorsale_billing_machine_id_cards"."id" = ? LIMIT 1 [["id", 1]]
3049
+ SQL (0.2ms) UPDATE "dorsale_billing_machine_quotations" SET "total_excluding_taxes" = ?, "vat_amount" = ?, "total_including_taxes" = ?, "updated_at" = ? WHERE "dorsale_billing_machine_quotations"."id" = ? [["total_excluding_taxes", 20003.4], ["vat_amount", 4000.68], ["total_including_taxes", 24004.08], ["updated_at", "2016-03-09 09:08:49.921861"], ["id", 1]]
3050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3051
+  (0.9ms) rollback transaction
3052
+  (0.1ms) begin transaction
3053
+  (0.1ms) rollback transaction
3054
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3055
+  (0.1ms) begin transaction
3056
+  (0.1ms) rollback transaction
3057
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3058
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3059
+  (0.1ms) begin transaction
3060
+  (0.1ms) rollback transaction
3061
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
3062
+  (0.1ms) begin transaction
3063
+  (0.1ms) rollback transaction
3064
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
3065
+  (0.1ms) begin transaction
3066
+  (0.1ms) rollback transaction
3067
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3068
+  (0.1ms) begin transaction
3069
+  (0.1ms) rollback transaction
3070
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3071
+  (0.1ms) begin transaction
3072
+  (0.1ms) rollback transaction