spec/dummy/log/test.log in adherent-0.3.12 vs spec/dummy/log/test.log in adherent-0.3.13
- old
+ new
@@ -471125,5 +471125,7094 @@
[1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
[1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
[1m[35mAdherent::Reglement Load (0.6ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1 [["payment_id", 196580812]]
[1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 1007489680]]
[1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (62.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (8.7ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (37.7ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:44:06', '2015-10-16 05:44:06')
+ [1m[36mFixture Delete (10.7ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (57.6ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:44:06.000000', '2015-10-11 05:44:06.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:44:06.000000', '2015-10-11 05:44:06.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:44:06.000000', '2015-10-11 05:44:06.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (12.1ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (17.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:44:06', '2015-10-16 05:44:06', 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:44:06', '2015-10-16 05:44:06', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:44:06', '2015-10-16 05:44:06', 841581840)
+ [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (62.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:44:06', '2015-10-16 05:44:06', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:44:06', '2015-10-16 05:44:06', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (7.6ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (39.5ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:44:07', '2015-10-16 05:44:07', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (1.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (65.7ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:44:07', '2015-10-16 05:44:07', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:44:07', '2015-10-16 05:44:07', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:44:07', '2015-10-16 05:44:07', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.9ms)[0m COMMIT
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "adherent_coords" ("city", "created_at", "member_id", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["city", "Lille"], ["created_at", "2015-10-16 05:44:07.434486"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:44:07.434486"], ["zip", 59000]]
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.6ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.8ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.5ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]]
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]]
+ [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:45:09', '2015-10-16 05:45:09')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:45:09.000000', '2015-10-11 05:45:09.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:45:09.000000', '2015-10-11 05:45:09.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:45:09.000000', '2015-10-11 05:45:09.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:45:09', '2015-10-16 05:45:09', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:45:09', '2015-10-16 05:45:09', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:45:09', '2015-10-16 05:45:09', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:45:09', '2015-10-16 05:45:09', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:45:09', '2015-10-16 05:45:09', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:45:09', '2015-10-16 05:45:09', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:45:09', '2015-10-16 05:45:09', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:45:09', '2015-10-16 05:45:09', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:45:09', '2015-10-16 05:45:09', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (85.5ms)[0m COMMIT
+ [1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.7ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.9ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "adherent_coords" ("city", "created_at", "member_id", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["city", "Lille"], ["created_at", "2015-10-16 05:45:10.016845"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:45:10.016845"], ["zip", 59000]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]]
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1[0m [["id", 669490783]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]]
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1[0m [["id", 767273998]]
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:45:49', '2015-10-16 05:45:49')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:45:49.000000', '2015-10-11 05:45:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:45:49.000000', '2015-10-11 05:45:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:45:49.000000', '2015-10-11 05:45:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:45:49', '2015-10-16 05:45:49', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:45:49', '2015-10-16 05:45:49', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:45:49', '2015-10-16 05:45:49', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:45:49', '2015-10-16 05:45:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:45:49', '2015-10-16 05:45:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:45:49', '2015-10-16 05:45:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:45:49', '2015-10-16 05:45:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:45:49', '2015-10-16 05:45:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:45:49', '2015-10-16 05:45:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (28.7ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.6ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_coords" ("city", "created_at", "member_id", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["city", "Lille"], ["created_at", "2015-10-16 05:45:49.350924"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:45:49.350924"], ["zip", 59000]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Coord Load (0.5ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:46:07', '2015-10-16 05:46:07')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:46:07.000000', '2015-10-11 05:46:07.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:46:07.000000', '2015-10-11 05:46:07.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:46:07.000000', '2015-10-11 05:46:07.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:46:07', '2015-10-16 05:46:07', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:46:07', '2015-10-16 05:46:07', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:46:07', '2015-10-16 05:46:07', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:46:07', '2015-10-16 05:46:07', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:46:07', '2015-10-16 05:46:07', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:46:07', '2015-10-16 05:46:07', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:46:07', '2015-10-16 05:46:07', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:46:07', '2015-10-16 05:46:07', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:46:07', '2015-10-16 05:46:07', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (54.7ms)[0m COMMIT
+ [1m[36m (1.8ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.7ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.7ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.6ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.6ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.7ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+ [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.8ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.6ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("city", "created_at", "member_id", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["city", "Lille"], ["created_at", "2015-10-16 05:46:07.754656"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:46:07.754656"], ["zip", 59000]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:47:13', '2015-10-16 05:47:13')
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:47:13.000000', '2015-10-11 05:47:13.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:47:13.000000', '2015-10-11 05:47:13.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:47:13.000000', '2015-10-11 05:47:13.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:47:13', '2015-10-16 05:47:13', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:47:13', '2015-10-16 05:47:13', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:47:13', '2015-10-16 05:47:13', 841581840)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:47:13', '2015-10-16 05:47:13', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:47:13', '2015-10-16 05:47:13', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:47:13', '2015-10-16 05:47:13', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:47:13', '2015-10-16 05:47:13', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:47:13', '2015-10-16 05:47:13', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:47:13', '2015-10-16 05:47:13', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (71.5ms)[0m COMMIT
+ [1m[36m (1.7ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.5ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (1.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.9ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:47:32', '2015-10-16 05:47:32')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:47:32.000000', '2015-10-11 05:47:32.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (1.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:47:32.000000', '2015-10-11 05:47:32.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:47:32.000000', '2015-10-11 05:47:32.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:47:32', '2015-10-16 05:47:32', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:47:32', '2015-10-16 05:47:32', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:47:32', '2015-10-16 05:47:32', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:47:32', '2015-10-16 05:47:32', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:47:32', '2015-10-16 05:47:32', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:47:32', '2015-10-16 05:47:32', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:47:32', '2015-10-16 05:47:32', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:47:32', '2015-10-16 05:47:32', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:47:32', '2015-10-16 05:47:32', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (124.3ms)[0m COMMIT
+ [1m[36m (1.8ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.6ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (1.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_coords" ("city", "created_at", "member_id", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["city", "Lille"], ["created_at", "2015-10-16 05:47:32.394641"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:47:32.394641"], ["zip", 59000]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:47:51', '2015-10-16 05:47:51')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:47:51.000000', '2015-10-11 05:47:51.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:47:51.000000', '2015-10-11 05:47:51.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:47:51.000000', '2015-10-11 05:47:51.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:47:51', '2015-10-16 05:47:51', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:47:51', '2015-10-16 05:47:51', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:47:51', '2015-10-16 05:47:51', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:47:51', '2015-10-16 05:47:51', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:47:51', '2015-10-16 05:47:51', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:47:51', '2015-10-16 05:47:51', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:47:51', '2015-10-16 05:47:51', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:47:51', '2015-10-16 05:47:51', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:47:51', '2015-10-16 05:47:51', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (51.9ms)[0m COMMIT
+ [1m[36m (1.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.7ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (1.1ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("city", "created_at", "member_id", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["city", "Lille"], ["created_at", "2015-10-16 05:47:51.771788"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:47:51.771788"], ["zip", 59000]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.5ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.5ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[36m (0.9ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:49:18', '2015-10-16 05:49:18')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.7ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:49:18.000000', '2015-10-11 05:49:18.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:49:18.000000', '2015-10-11 05:49:18.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:49:18.000000', '2015-10-11 05:49:18.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:49:18', '2015-10-16 05:49:18', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:49:18', '2015-10-16 05:49:18', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:49:18', '2015-10-16 05:49:18', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:49:18', '2015-10-16 05:49:18', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:49:18', '2015-10-16 05:49:18', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:49:18', '2015-10-16 05:49:18', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:49:18', '2015-10-16 05:49:18', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:49:18', '2015-10-16 05:49:18', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:49:18', '2015-10-16 05:49:18', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (49.8ms)[0m COMMIT
+ [1m[36m (1.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.7ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (1.8ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.6ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]]
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1[0m [["id", 669490783]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]]
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1[0m [["id", 767273998]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("city", "created_at", "member_id", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["city", "Lille"], ["created_at", "2015-10-16 05:49:18.742540"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:49:18.742540"], ["zip", 59000]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:50:26', '2015-10-16 05:50:26')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:50:26.000000', '2015-10-11 05:50:26.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:50:26.000000', '2015-10-11 05:50:26.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:50:26.000000', '2015-10-11 05:50:26.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:50:26', '2015-10-16 05:50:26', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:50:26', '2015-10-16 05:50:26', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:50:26', '2015-10-16 05:50:26', 841581840)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:50:26', '2015-10-16 05:50:26', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:50:26', '2015-10-16 05:50:26', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:50:26', '2015-10-16 05:50:26', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:50:26', '2015-10-16 05:50:26', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:50:26', '2015-10-16 05:50:26', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:50:26', '2015-10-16 05:50:26', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (31.6ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.5ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.3ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_coords" ("city", "created_at", "member_id", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["city", "Lille"], ["created_at", "2015-10-16 05:50:27.042271"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:50:27.042271"], ["zip", 59000]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:31', '2015-10-16 05:51:31')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:31.000000', '2015-10-11 05:51:31.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:31.000000', '2015-10-11 05:51:31.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:31.000000', '2015-10-11 05:51:31.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:31', '2015-10-16 05:51:31', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:31', '2015-10-16 05:51:31', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:31', '2015-10-16 05:51:31', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:31', '2015-10-16 05:51:31', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:31', '2015-10-16 05:51:31', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:31', '2015-10-16 05:51:31', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:31', '2015-10-16 05:51:31', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:31', '2015-10-16 05:51:31', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:31', '2015-10-16 05:51:31', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (51.9ms)[0m COMMIT
+ [1m[36m (1.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.8ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (2.9ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1[0m
+Started GET "/adherent/members/278616557/coord/new" for 127.0.0.1 at 2015-10-16 07:51:31 +0200
+Processing by Adherent::CoordsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (1.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (2.0ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (83.3ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/new.html.erb within layouts/adherent/application (94.4ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (1.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (2.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.0ms)
+Completed 200 OK in 315ms (Views: 199.0ms | ActiveRecord: 5.1ms)
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+Started POST "/adherent/members/278616557/coord" for 127.0.0.1 at 2015-10-16 07:51:32 +0200
+Processing by Adherent::CoordsController#create as HTML
+ Parameters: {"utf8"=>"✓", "coord"=>{"mail"=>"joe.dalton@penitencier.us", "tel"=>"", "gsm"=>"", "office"=>"", "address"=>"", "zip"=>"", "city"=>"Oklahoma city"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.7ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_coords" ("address", "city", "created_at", "gsm", "mail", "member_id", "office", "tel", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["address", ""], ["city", "Oklahoma city"], ["created_at", "2015-10-16 05:51:32.206225"], ["gsm", ""], ["mail", "joe.dalton@penitencier.us"], ["member_id", 278616557], ["office", ""], ["tel", ""], ["updated_at", "2015-10-16 05:51:32.206225"], ["zip", ""]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://www.example.com/adherent/members/278616557/adhesions/new
+Completed 302 Found in 11ms (ActiveRecord: 3.1ms)
+Started GET "/adherent/members/278616557/adhesions/new" for 127.0.0.1 at 2015-10-16 07:51:32 +0200
+Processing by Adherent::AdhesionsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (8.4ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/new.html.erb within layouts/adherent/application (10.5ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 29ms (Views: 13.8ms | ActiveRecord: 2.5ms)
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1
+Started GET "/adherent/members/278616557/coord/new" for 127.0.0.1 at 2015-10-16 07:51:32 +0200
+Processing by Adherent::CoordsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (8.4ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/new.html.erb within layouts/adherent/application (9.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 17ms (Views: 11.8ms | ActiveRecord: 1.7ms)
+Started POST "/adherent/members/278616557/coord" for 127.0.0.1 at 2015-10-16 07:51:32 +0200
+Processing by Adherent::CoordsController#create as HTML
+ Parameters: {"utf8"=>"✓", "coord"=>{"mail"=>"joe.dalton@penitencier.us", "tel"=>"", "gsm"=>"", "office"=>"", "address"=>"", "zip"=>"", "city"=>""}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.7ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_coords" ("address", "city", "created_at", "gsm", "mail", "member_id", "office", "tel", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["address", ""], ["city", ""], ["created_at", "2015-10-16 05:51:32.281692"], ["gsm", ""], ["mail", "joe.dalton@penitencier.us"], ["member_id", 278616557], ["office", ""], ["tel", ""], ["updated_at", "2015-10-16 05:51:32.281692"], ["zip", ""]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://www.example.com/adherent/members/278616557/adhesions/new
+Completed 302 Found in 10ms (ActiveRecord: 2.9ms)
+Started GET "/adherent/members/278616557/adhesions/new" for 127.0.0.1 at 2015-10-16 07:51:32 +0200
+Processing by Adherent::AdhesionsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (4.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/new.html.erb within layouts/adherent/application (5.3ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 7.0ms | ActiveRecord: 2.3ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (1.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1[0m
+Started GET "/adherent/members/278616557/coord/new" for 127.0.0.1 at 2015-10-16 07:51:32 +0200
+Processing by Adherent::CoordsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (10.3ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/new.html.erb within layouts/adherent/application (11.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 18ms (Views: 12.7ms | ActiveRecord: 1.7ms)
+Started POST "/adherent/members/278616557/coord" for 127.0.0.1 at 2015-10-16 07:51:32 +0200
+Processing by Adherent::CoordsController#create as HTML
+ Parameters: {"utf8"=>"✓", "coord"=>{"mail"=>"joe.dalton@penitencier.us", "tel"=>"", "gsm"=>"", "office"=>"", "address"=>"", "zip"=>"", "city"=>"Oklahoma city"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("address", "city", "created_at", "gsm", "mail", "member_id", "office", "tel", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["address", ""], ["city", "Oklahoma city"], ["created_at", "2015-10-16 05:51:32.343430"], ["gsm", ""], ["mail", "joe.dalton@penitencier.us"], ["member_id", 278616557], ["office", ""], ["tel", ""], ["updated_at", "2015-10-16 05:51:32.343430"], ["zip", ""]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/adhesions/new
+Completed 302 Found in 10ms (ActiveRecord: 2.9ms)
+Started GET "/adherent/members/278616557/adhesions/new" for 127.0.0.1 at 2015-10-16 07:51:32 +0200
+Processing by Adherent::AdhesionsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (5.3ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/new.html.erb within layouts/adherent/application (6.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 15ms (Views: 8.2ms | ActiveRecord: 2.1ms)
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1[0m
+Started GET "/adherent/members/278616557/coord/new" for 127.0.0.1 at 2015-10-16 07:51:32 +0200
+Processing by Adherent::CoordsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (8.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/new.html.erb within layouts/adherent/application (9.5ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 18ms (Views: 11.9ms | ActiveRecord: 1.6ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#update as HTML
+ Parameters: {"coord"=>{"city"=>"Dallas"}, "member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Redirected to http://test.host/adherent/members/%23%5BDouble%20Adherent::Member(id:%20integer,%20number:%20string,%20name:%20string,%20forname:%20string,%20birthdate:%20date,%20created_at:%20datetime,%20updated_at:%20datetime,%20organism_id:%20integer)%5D/coord
+Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#update as HTML
+ Parameters: {"coord"=>{"city"=>"Dallas"}, "member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Redirected to http://test.host/adherent/members/%23%5BDouble%20Adherent::Member(id:%20integer,%20number:%20string,%20name:%20string,%20forname:%20string,%20birthdate:%20date,%20created_at:%20datetime,%20updated_at:%20datetime,%20organism_id:%20integer)%5D/coord
+Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#update as HTML
+ Parameters: {"coord"=>{"city"=>"Dallas"}, "member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 1.1ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#update as HTML
+ Parameters: {"coord"=>{"city"=>"Dallas"}, "member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (1.0ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 1.7ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#edit as HTML
+ Parameters: {"member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 1.0ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#edit as HTML
+ Parameters: {"member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 1.0ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#create as HTML
+ Parameters: {"coord"=>{"city"=>"Bruxelles", "zip"=>"1000"}, "member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Redirected to http://test.host/adherent/members/%23%5BDouble%20Adherent::Member(id:%20integer,%20number:%20string,%20name:%20string,%20forname:%20string,%20birthdate:%20date,%20created_at:%20datetime,%20updated_at:%20datetime,%20organism_id:%20integer)%5D/adhesions/new
+Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#create as HTML
+ Parameters: {"coord"=>{"city"=>"Bruxelles", "zip"=>"1000"}, "member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 1.0ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#show as HTML
+ Parameters: {"member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 1.1ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#show as HTML
+ Parameters: {"member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 1.0ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+Processing by Adherent::CoordsController#new as HTML
+ Parameters: {"member_id"=>"#[Double Adherent::Member(id: integer, number: string, name: string, forname: string, birthdate: date, created_at: datetime, updated_at: datetime, organism_id: integer)]"}
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.3ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.6ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+Processing by Adherent::AllpaymentsController#index as HTML
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 49ms (Views: 3.1ms | ActiveRecord: 0.9ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.9ms)[0m [1mBEGIN[0m
+ [1m[35m (0.8ms)[0m COMMIT
+ [1m[36m (0.8ms)[0m [1mBEGIN[0m
+ [1m[35m (0.9ms)[0m ROLLBACK
+ [1m[36m (1.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:32', '2015-10-16 05:51:32')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:32.000000', '2015-10-11 05:51:32.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:32.000000', '2015-10-11 05:51:32.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:32.000000', '2015-10-11 05:51:32.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:32', '2015-10-16 05:51:32', 278616557)
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:32', '2015-10-16 05:51:32', 767273998)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:32', '2015-10-16 05:51:32', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:32', '2015-10-16 05:51:32', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:32', '2015-10-16 05:51:32', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:32', '2015-10-16 05:51:32', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:32', '2015-10-16 05:51:32', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:32', '2015-10-16 05:51:32', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:32', '2015-10-16 05:51:32', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (27.3ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35mAdherent::Member Load (0.7ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]]
+Started GET "/adherent/members/278616557/payments/196580812" for 127.0.0.1 at 2015-10-16 07:51:38 +0200
+Processing by Adherent::PaymentsController#show as HTML
+ Parameters: {"member_id"=>"278616557", "id"=>"196580812"}
+ [1m[36mOrganism Load (1.0ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.6ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 196580812 LIMIT 1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (3.5ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.6ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_receipt.html.haml (21.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (1.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (8.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.6ms)
+Completed 200 OK in 319ms (Views: 120.7ms | ActiveRecord: 19.8ms)
+Started GET "/assets/adherent/application.css" for 127.0.0.1 at 2015-10-16 07:51:38 +0200
+Started GET "/assets/adherent/application.js" for 127.0.0.1 at 2015-10-16 07:51:38 +0200
+Started GET "/assets/adherent/icones/payment.png" for 127.0.0.1 at 2015-10-16 07:51:39 +0200
+Started GET "/assets/adherent/icones/money-plus.png" for 127.0.0.1 at 2015-10-16 07:51:39 +0200
+Started GET "/assets/adherent/icones/imputation.png" for 127.0.0.1 at 2015-10-16 07:51:39 +0200
+Started GET "/assets/adherent/icones/supprimer.png" for 127.0.0.1 at 2015-10-16 07:51:39 +0200
+Started GET "/assets/adherent/icones/printer.png" for 127.0.0.1 at 2015-10-16 07:51:39 +0200
+Started GET "/assets/adherent/icones/modifier.png" for 127.0.0.1 at 2015-10-16 07:51:39 +0200
+Started GET "/assets/adherent/icones/detail.png" for 127.0.0.1 at 2015-10-16 07:51:39 +0200
+Started DELETE "/adherent/members/278616557/payments/196580812" for 127.0.0.1 at 2015-10-16 07:51:39 +0200
+Processing by Adherent::PaymentsController#destroy as HTML
+ Parameters: {"member_id"=>"278616557", "id"=>"196580812"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.3ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = $2 LIMIT 1 [["member_id", 278616557], ["id", 196580812]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Reglement Load (0.3ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "adherent_reglements" WHERE "adherent_reglements"."id" = $1[0m [["id", 682483592]]
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 [["id", 196580812]]
+ [1m[36m (679.4ms)[0m [1mCOMMIT[0m
+Redirected to http://127.0.0.1:55675/adherent/members/278616557/payments
+Completed 302 Found in 696ms (ActiveRecord: 682.1ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:40 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (1.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.9ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.7ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ Rendered collection (0.0ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 29ms (Views: 12.8ms | ActiveRecord: 8.7ms)
+Started GET "/assets/adherent/icones/users.png" for 127.0.0.1 at 2015-10-16 07:51:40 +0200
+ [1m[35mAdherent::Payment Load (0.9ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36m (2.2ms)[0m [1mSELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (4.4ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (165.7ms)[0m select table_name from information_schema.views where table_schema = 'adh_test'
+ [1m[36m (319.9ms)[0m [1mTRUNCATE TABLE "public"."adherent_coords", "public"."adherent_members", "public"."adherent_adhesions", "public"."organisms", "public"."adherent_payments", "public"."adherent_reglements" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL
+ [1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.6ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:41', '2015-10-16 05:51:41')
+ [1m[36mFixture Delete (1.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:41.000000', '2015-10-11 05:51:41.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:41.000000', '2015-10-11 05:51:41.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:41.000000', '2015-10-11 05:51:41.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:41', '2015-10-16 05:51:41', 278616557)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:41', '2015-10-16 05:51:41', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:41', '2015-10-16 05:51:41', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.7ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:41', '2015-10-16 05:51:41', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:41', '2015-10-16 05:51:41', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:41', '2015-10-16 05:51:41', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:41', '2015-10-16 05:51:41', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:41', '2015-10-16 05:51:41', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:41', '2015-10-16 05:51:41', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.7ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" DESC LIMIT 1 [["member_id", 278616557]]
+Started GET "/adherent/members/278616557/adhesions" for 127.0.0.1 at 2015-10-16 07:51:41 +0200
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.3ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.8ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Exists (0.7ms)[0m SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35m (0.6ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.3ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 92ms (Views: 24.3ms | ActiveRecord: 4.5ms)
+Started GET "/assets/adherent/icones/nouveau.png" for 127.0.0.1 at 2015-10-16 07:51:41 +0200
+Started DELETE "/adherent/members/278616557/adhesions/1007489680" for 127.0.0.1 at 2015-10-16 07:51:42 +0200
+Processing by Adherent::AdhesionsController#destroy as HTML
+ Parameters: {"member_id"=>"278616557", "id"=>"1007489680"}
+ [1m[35mOrganism Load (1.3ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (1.1ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.7ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (1.0ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1[0m [["member_id", 278616557], ["id", 1007489680]]
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1[0m [["id", 1007489680]]
+ [1m[35m (111.8ms)[0m COMMIT
+Redirected to http://127.0.0.1:55675/adherent/members/278616557/adhesions
+Completed 302 Found in 133ms (ActiveRecord: 122.4ms)
+Started GET "/adherent/members/278616557/adhesions" for 127.0.0.1 at 2015-10-16 07:51:42 +0200
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.8ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.7ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Exists (0.7ms)[0m SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+Redirected to http://127.0.0.1:55675/adherent/members/278616557/adhesions/new
+Completed 302 Found in 8ms (ActiveRecord: 2.6ms)
+Started GET "/adherent/members/278616557/adhesions/new" for 127.0.0.1 at 2015-10-16 07:51:42 +0200
+Processing by Adherent::AdhesionsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.7ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (10.0ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 24ms (Views: 15.1ms | ActiveRecord: 2.5ms)
+Started GET "/assets/cal.gif" for 127.0.0.1 at 2015-10-16 07:51:42 +0200
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL
+ [1m[36m (1.9ms)[0m [1m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+[0m
+ [1m[35m (2.1ms)[0m select table_name from information_schema.views where table_schema = 'adh_test'
+ [1m[36m (213.6ms)[0m [1mTRUNCATE TABLE "public"."adherent_members", "public"."adherent_adhesions", "public"."adherent_coords", "public"."adherent_payments", "public"."adherent_reglements", "public"."organisms" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:43', '2015-10-16 05:51:43')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.7ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:43.000000', '2015-10-11 05:51:43.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (1.2ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:43.000000', '2015-10-11 05:51:43.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:43.000000', '2015-10-11 05:51:43.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:43', '2015-10-16 05:51:43', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:43', '2015-10-16 05:51:43', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:43', '2015-10-16 05:51:43', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:43', '2015-10-16 05:51:43', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:43', '2015-10-16 05:51:43', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:43', '2015-10-16 05:51:43', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:43', '2015-10-16 05:51:43', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:43', '2015-10-16 05:51:43', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:43', '2015-10-16 05:51:43', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (3.2ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (2.1ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 14.3ms | ActiveRecord: 3.0ms)
+Started GET "/assets/adherent/icones/csv.png" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Started GET "/assets/adherent/icones/bandaid.png" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Started GET "/assets/adherent/icones/xls.png" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Started GET "/assets/adherent/icones/nb_supprimer.png" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Started GET "/assets/adherent/icones/card-address.png" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Started GET "/assets/sort_asc.png" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Started GET "/assets/back_disabled.png" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Started GET "/assets/forward_disabled.png" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Started GET "/assets/sort_both.png" for 127.0.0.1 at 2015-10-16 07:51:43 +0200
+Started DELETE "/adherent/members/767273998" for 127.0.0.1 at 2015-10-16 07:51:44 +0200
+Processing by Adherent::MembersController#destroy as HTML
+ Parameters: {"id"=>"767273998"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Coord Load (0.5ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]]
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1[0m [["id", 669490783]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]]
+ [1m[36mSQL (0.7ms)[0m [1mDELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1[0m [["id", 767273998]]
+ [1m[35m (115.4ms)[0m COMMIT
+Redirected to http://127.0.0.1:55675/adherent/members
+Completed 302 Found in 152ms (ActiveRecord: 120.2ms)
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:44 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[36mOrganism Load (0.9ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.9ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (2.5ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.3ms)
+Completed 200 OK in 18ms (Views: 10.4ms | ActiveRecord: 4.3ms)
+ [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "adherent_members"
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL[0m
+ [1m[35m (1.9ms)[0m SELECT schemaname || '.' || tablename
+ FROM pg_tables
+ WHERE
+ tablename !~ '_prt_' AND
+ tablename <> 'schema_migrations' AND
+ schemaname = ANY (current_schemas(false))
+
+ [1m[36m (1.6ms)[0m [1mselect table_name from information_schema.views where table_schema = 'adh_test'[0m
+ [1m[35m (216.9ms)[0m TRUNCATE TABLE "public"."adherent_members", "public"."adherent_adhesions", "public"."adherent_coords", "public"."adherent_reglements", "public"."organisms", "public"."adherent_payments" RESTART IDENTITY CASCADE;
+ [1m[36m (0.8ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:45', '2015-10-16 05:51:45')[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 278616557)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 841581840)[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 669490783, 767273998)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 111394477, 1007489680, 314492016)
+ [1m[36m (33.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]]
+ [1m[36mAdherent::Reglement Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 LIMIT 1[0m [["payment_id", 196580812]]
+ [1m[35mAdherent::Reglement Load (0.5ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 196580812]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:45', '2015-10-16 05:51:45')
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 767273998)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 196580812, 278616557)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.8ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 196580812]]
+ [1m[35mAdherent::Reglement Exists (0.4ms)[0m SELECT 1 AS one FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 LIMIT 1 [["payment_id", 196580812]]
+ [1m[36mAdherent::Reglement Load (0.6ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 196580812]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (2.2ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:45', '2015-10-16 05:51:45')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 841581840)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 669490783, 767273998)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 111394477, 1007489680, 314492016)
+ [1m[36m (2.1ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.9ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:45', '2015-10-16 05:51:45')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 841581840)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 314492016, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 669490783, 767273998)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 111394477, 1007489680, 314492016)
+ [1m[36m (1.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.8ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]]
+ [1m[36mAdherent::Reglement Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 LIMIT 1[0m [["payment_id", 196580812]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 196580812]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:45', '2015-10-16 05:51:45')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.8ms)[0m COMMIT
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 196580812]]
+ [1m[35mAdherent::Reglement Exists (0.4ms)[0m SELECT 1 AS one FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 LIMIT 1 [["payment_id", 196580812]]
+ [1m[36mAdherent::Reglement Load (0.3ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 196580812]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:45', '2015-10-16 05:51:45')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 278616557)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 111394477, 1007489680, 314492016)
+ [1m[36m (2.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:45', '2015-10-16 05:51:45')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 111394477, 1007489680, 314492016)
+ [1m[36m (2.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36mAdherent::Adhesion Load (0.8ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 841581840]]
+ [1m[35m (0.6ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 302216097]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "54.0"], ["created_at", "2015-10-16 05:51:45.931884"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:45.931884"]]
+ [1m[36mAdherent::Adhesion Load (0.8ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 841581840]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 621036344], ["amount", "19.0"], ["created_at", "2015-10-16 05:51:45.938080"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:45.938080"]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 302216097], ["amount", "26.0"], ["created_at", "2015-10-16 05:51:45.941849"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:45.941849"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:45', '2015-10-16 05:51:45')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:45.000000', '2015-10-11 05:51:45.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 278616557)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 841581840)[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:45', '2015-10-16 05:51:45', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:45', '2015-10-16 05:51:45', 111394477, 1007489680, 314492016)
+ [1m[36m (2.1ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.6ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements"[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "54.0"], ["created_at", "2015-10-16 05:51:45.998657"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:45.998657"]]
+ [1m[36mAdherent::Adhesion Load (0.8ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 841581840]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 621036344], ["amount", "19.0"], ["created_at", "2015-10-16 05:51:46.006933"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:46.006933"]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 302216097], ["amount", "26.0"], ["created_at", "2015-10-16 05:51:46.010354"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:46.010354"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements"[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.8ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)
+ [1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.4ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_payments"
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOrganism Load (0.3ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_payments"
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (1.0ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.9ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)
+ [1m[36m (1.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (3.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.4ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 196580812]]
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.8ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "14.66"], ["created_at", "2015-10-16 05:51:46.184822"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:46.184822"]]
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:46.190416"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:46.190416"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mAdherent::Reglement Load (0.3ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (1.1ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (1.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)
+ [1m[36m (1.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]]
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.8ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "11.66"], ["created_at", "2015-10-16 05:51:46.253473"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:46.253473"]]
+ [1m[35mAdherent::Adhesion Load (0.9ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:46.259049"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:46.259049"]]
+ [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)
+ [1m[36m (1.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "10.66"], ["created_at", "2015-10-16 05:51:46.320737"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:46.320737"]]
+ [1m[35mAdherent::Adhesion Load (0.6ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 1007489680], ["amount", "10.66"], ["created_at", "2015-10-16 05:51:46.325960"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:46.325960"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.6ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.8ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.0ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:46 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (32.0ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 50ms (Views: 39.5ms | ActiveRecord: 2.5ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (1.1ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)
+ [1m[36m (1.7ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.8ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:46 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.6ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.7ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 8.9ms | ActiveRecord: 2.9ms)
+ [1m[35mAdherent::Adhesion Load (0.8ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.7ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.6ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (1.1ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.7ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]]
+Started GET "/adherent/members/278616557/payments/196580812" for 127.0.0.1 at 2015-10-16 07:51:46 +0200
+Processing by Adherent::PaymentsController#show as HTML
+ Parameters: {"member_id"=>"278616557", "id"=>"196580812"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 196580812 LIMIT 1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.8ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_receipt.html.haml (2.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 9.3ms | ActiveRecord: 3.7ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)
+ [1m[36m (1.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 196580812]]
+Started GET "/adherent/members/278616557/payments/196580812" for 127.0.0.1 at 2015-10-16 07:51:46 +0200
+Processing by Adherent::PaymentsController#show as HTML
+ Parameters: {"member_id"=>"278616557", "id"=>"196580812"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.3ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 196580812 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812)
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 196580812]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_receipt.html.haml (2.8ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 24ms (Views: 9.7ms | ActiveRecord: 5.8ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.6ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.7ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]]
+Started GET "/adherent/members/278616557/payments/196580812" for 127.0.0.1 at 2015-10-16 07:51:46 +0200
+Processing by Adherent::PaymentsController#show as HTML
+ Parameters: {"member_id"=>"278616557", "id"=>"196580812"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 196580812 LIMIT 1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.9ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_receipt.html.haml (3.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.2ms)
+Completed 200 OK in 28ms (Views: 16.4ms | ActiveRecord: 4.6ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)
+ [1m[36m (1.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:46 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.8ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.2ms)
+Completed 200 OK in 24ms (Views: 14.4ms | ActiveRecord: 5.9ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (1.1ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.1ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:46 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812)
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)[0m
+ [1m[35mAdherent::Member Load (0.8ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (3.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 21ms (Views: 12.8ms | ActiveRecord: 5.4ms)
+Started GET "/adherent/payments/196580812/reglements/new" for 127.0.0.1 at 2015-10-16 07:51:46 +0200
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"196580812"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 196580812]]
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 196580812]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ [1m[36mAdherent::Reglement Load (0.6ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 196580812]]
+ [1m[35mCACHE (0.0ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ [1m[36mAdherent::Adhesion Load (0.9ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" INNER JOIN "adherent_members" ON "adherent_adhesions"."member_id" = "adherent_members"."id" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_members"."organism_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL)[0m [["organism_id", 1]]
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36m (0.8ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 621036344]]
+ [1m[35mCACHE (0.0ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 302216097]]
+ [1m[35mCACHE (0.0ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (22.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 41ms (Views: 26.7ms | ActiveRecord: 6.0ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:46', '2015-10-16 05:51:46')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:46.000000', '2015-10-11 05:51:46.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (1.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 841581840)
+ [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:46', '2015-10-16 05:51:46', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:46', '2015-10-16 05:51:46', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.8ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:46 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.5ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 2.8ms)
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "150.25"], ["comment", ""], ["created_at", "2015-10-16 05:51:47.023841"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:47.023841"]]
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:47.029830"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:47.029830"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 16ms (ActiveRecord: 4.0ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.6ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.4ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 13.2ms | ActiveRecord: 3.3ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')[0m
+ [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (1.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)
+ [1m[36m (2.0ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.7ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 18ms (Views: 9.2ms | ActiveRecord: 2.5ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)
+ [1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.0ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+Started GET "/adherent/members/767273998/adhesions/new" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::AdhesionsController#new as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.9ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 767273998]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (5.5ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 15ms (Views: 7.7ms | ActiveRecord: 2.7ms)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+Started POST "/adherent/members/767273998/adhesions" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::AdhesionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "adhesion"=>{"from_date"=>"01/08/2013", "to_date"=>"31/07/2014", "amount"=>"150.25"}, "commit"=>"Enregistrer", "member_id"=>"767273998"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+ [1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "150.25"], ["created_at", "2015-10-16 05:51:47.215397"], ["from_date", "2013-08-01"], ["member_id", 767273998], ["to_date", "2014-07-31"], ["updated_at", "2015-10-16 05:51:47.215397"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://www.example.com/adherent/members/767273998/adhesions
+Completed 302 Found in 10ms (ActiveRecord: 3.0ms)
+Started GET "/adherent/members/767273998/adhesions" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+ [1m[36mAdherent::Adhesion Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489681]]
+ [1m[35mCACHE (0.0ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489681]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 7.4ms | ActiveRecord: 2.7ms)
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+Started GET "/adherent/members/767273998/adhesions/new" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::AdhesionsController#new as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 767273998]]
+ [1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 767273998]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (4.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.3ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.8ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "876.54"], ["created_at", "2015-10-16 05:51:47.311840"], ["from_date", "2015-10-16"], ["member_id", 767273998], ["to_date", "2015-11-16"], ["updated_at", "2015-10-16 05:51:47.311840"]]
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+Started GET "/adherent/members/767273998/adhesions" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 767273998]]
+ [1m[35mAdherent::Adhesion Exists (0.3ms)[0m SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489681]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489681]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 7.6ms | ActiveRecord: 2.7ms)
+ [1m[35m (0.8ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.5ms)[0m BEGIN
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.6ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "876.54"], ["created_at", "2015-10-16 05:51:47.385083"], ["from_date", "2015-10-16"], ["member_id", 767273998], ["to_date", "2015-11-16"], ["updated_at", "2015-10-16 05:51:47.385083"]]
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+Started GET "/adherent/members/767273998/adhesions" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 767273998]]
+ [1m[35mAdherent::Adhesion Exists (0.4ms)[0m SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489681]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489681]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 7.5ms | ActiveRecord: 2.7ms)
+Started GET "/adherent/members/767273998/payments/new" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 767273998]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489681]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (5.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 17ms (Views: 8.6ms | ActiveRecord: 2.4ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "876.54"], ["created_at", "2015-10-16 05:51:47.430987"], ["from_date", "2015-10-16"], ["member_id", 767273998], ["to_date", "2015-11-16"], ["updated_at", "2015-10-16 05:51:47.430987"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Started GET "/adherent/members/767273998/adhesions" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 767273998]]
+ [1m[35mAdherent::Adhesion Exists (0.4ms)[0m SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489682]]
+ [1m[36mCACHE (0.1ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489682]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 15ms (Views: 7.3ms | ActiveRecord: 2.7ms)
+Started GET "/adherent/members/767273998/adhesions/1007489682/edit" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::AdhesionsController#edit as HTML
+ Parameters: {"member_id"=>"767273998", "id"=>"1007489682"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1[0m [["member_id", 767273998], ["id", 1007489682]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (5.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 16ms (Views: 9.7ms | ActiveRecord: 1.8ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.0ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (2.7ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 8.3ms | ActiveRecord: 3.6ms)
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.8ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (1.3ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 2.5ms)
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "adherent_members"
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)
+ [1m[36m (1.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+Started GET "/adherent/members/new" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::MembersController#new as HTML
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/members/_form.html.erb (7.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 0.9ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "adherent_members"
+Started POST "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::MembersController#create as HTML
+ Parameters: {"utf8"=>"✓", "member"=>{"number"=>"ADH1", "name"=>"James", "forname"=>"Jessie", "birthdate"=>""}, "commit"=>"Créer le membre"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.6ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'ADH1' AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_members" ("created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-10-16 05:51:47.694693"], ["forname", "Jessie"], ["name", "James"], ["number", "ADH1"], ["organism_id", 1], ["updated_at", "2015-10-16 05:51:47.694693"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/841581841/coord/new
+Completed 302 Found in 11ms (ActiveRecord: 2.7ms)
+Started GET "/adherent/members/841581841/coord/new" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::CoordsController#new as HTML
+ Parameters: {"member_id"=>"841581841"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 841581841]]
+ [1m[35mAdherent::Coord Load (0.3ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581841]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (10.4ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 23ms (Views: 15.8ms | ActiveRecord: 1.7ms)
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_members"[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.3ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (1.4ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 2.3ms)
+ [1m[35mAdherent::Member Load (0.7ms)[0m SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/coord" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::CoordsController#show as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.7ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+Redirected to http://www.example.com/adherent/members/278616557/coord/new
+Completed 302 Found in 7ms (ActiveRecord: 2.1ms)
+Started GET "/adherent/members/278616557/coord/new" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::CoordsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (9.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 1.8ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.4ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (1.4ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 2.3ms)
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/adhesions" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35mCACHE (0.0ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 7.1ms | ActiveRecord: 2.6ms)
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:47', '2015-10-16 05:51:47')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:47.000000', '2015-10-11 05:51:47.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:47', '2015-10-16 05:51:47', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:47', '2015-10-16 05:51:47', 111394477, 1007489680, 314492016)
+ [1m[36m (1.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.9ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.8ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (1.4ms)[0m SELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 2.7ms)
+ [1m[36mAdherent::Member Load (0.7ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:47 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.6ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (3.8ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 3.1ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.0ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (1.4ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 2.3ms)
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+Started GET "/adherent/members/767273998/adhesions" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+ [1m[36mAdherent::Adhesion Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+Redirected to http://www.example.com/adherent/members/767273998/adhesions/new
+Completed 302 Found in 7ms (ActiveRecord: 2.0ms)
+Started GET "/adherent/members/767273998/adhesions/new" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::AdhesionsController#new as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 767273998]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (5.4ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 15ms (Views: 8.0ms | ActiveRecord: 2.5ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)
+ [1m[36m (28.0ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.6ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[35mOrganism Load (0.9ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (1.6ms)[0m SELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.0ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 3.0ms)
+ [1m[36mAdherent::Member Load (0.6ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1[0m
+Started GET "/adherent/members/278616557/edit" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::MembersController#edit as HTML
+ Parameters: {"id"=>"278616557"}
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/members/_form.html.erb (5.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 1.6ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)[0m
+ [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)
+ [1m[36m (1.9ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (2.3ms)[0m SELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 15ms (Views: 9.5ms | ActiveRecord: 3.2ms)
+ [1m[36mAdherent::Member Load (0.6ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1[0m
+Started GET "/adherent/members/new" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::MembersController#new as HTML
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/members/_form.html.erb (6.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.9ms)
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (3.0ms)[0m COMMIT
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m BEGIN
+Started GET "/adherent/members" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::MembersController#index as HTML
+ [1m[36mOrganism Load (0.7ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.8ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (2.1ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.3ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 18ms (Views: 11.8ms | ActiveRecord: 3.6ms)
+ [1m[35mAdherent::Member Load (1.0ms)[0m SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1
+Started GET "/adherent/members/278616557/coord" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::CoordsController#show as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.7ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.5ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+Redirected to http://www.example.com/adherent/members/278616557/coord/new
+Completed 302 Found in 9ms (ActiveRecord: 2.1ms)
+Started GET "/adherent/members/278616557/coord/new" for 127.0.0.1 at 2015-10-16 07:51:48 +0200
+Processing by Adherent::CoordsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.8ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Coord Load (0.5ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (12.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 25ms (Views: 16.4ms | ActiveRecord: 2.2ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')[0m
+ [1m[35mFixture Delete (1.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)
+ [1m[36m (1.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Member Exists (1.4ms)[0m [1mSELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."id" != 278616557 AND "adherent_members"."organism_id" = 1) LIMIT 1[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.5ms)[0m COMMIT
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.7ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Exists (0.9ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."organism_id" = 2) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)
+ [1m[36m (1.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Exists (0.9ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)
+ [1m[36m (26.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Member Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" IS NULL AND "adherent_members"."id" != 278616557 AND "adherent_members"."organism_id" = 1) LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (3.8ms)[0m COMMIT
+ [1m[36m (1.1ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (61.8ms)[0m BEGIN
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.8ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Exists (0.7ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."id" != 278616557 AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)
+ [1m[36m (1.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Member Exists (1.4ms)[0m [1mSELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."organism_id" = 1) LIMIT 1[0m
+ [1m[35m (0.6ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)[0m
+ [1m[35mFixture Insert (0.9ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.0ms)[0m COMMIT
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Member Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A002' AND "adherent_members"."id" != 767273998 AND "adherent_members"."organism_id" = 1) LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m UPDATE "adherent_members" SET "birthdate" = $1, "updated_at" = $2 WHERE "adherent_members"."id" = 767273998 [["birthdate", "1944-06-06"], ["updated_at", "2015-10-16 05:51:48.936403"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:48', '2015-10-16 05:51:48')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:48.000000', '2015-10-11 05:51:48.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:48', '2015-10-16 05:51:48', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:48', '2015-10-16 05:51:48', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.5ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.6ms)[0m COMMIT
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (0.7ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (1.0ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.1ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+ [1m[35mAdherent::Adhesion Load (1.1ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (1.0ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (0.9ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (65.1ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (1.2ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+ [1m[35mAdherent::Adhesion Load (0.7ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (1.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35m (1.2ms)[0m ROLLBACK
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (2.1ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (1.1ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (2.0ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.7ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (1.9ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.3ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.6ms)[0m BEGIN
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.6ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.6ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.6ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.5ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.8ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.4ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.9ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (19.6ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35mAdherent::Coord Load (0.5ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.4ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A003' AND "adherent_members"."id" != 841581840 AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "adherent_coords" ("created_at", "mail", "member_id", "tel", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-10-16 05:51:49.576194"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.576194"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mAdherent::Member Load (2.1ms)[0m SELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.7ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.8ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.9ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)
+ [1m[36m (1.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36mAdherent::Coord Load (0.5ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 841581840]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Member Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A003' AND "adherent_members"."id" != 841581840 AND "adherent_members"."organism_id" = 1) LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_coords" ("created_at", "mail", "member_id", "tel", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-10-16 05:51:49.647243"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.647243"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mAdherent::Member Load (1.8ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.5ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35mAdherent::Coord Load (0.5ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.5ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A003' AND "adherent_members"."id" != 841581840 AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "adherent_coords" ("created_at", "mail", "member_id", "tel", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-10-16 05:51:49.718741"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.718741"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mAdherent::Member Load (1.7ms)[0m SELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)
+ [1m[36m (2.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36mAdherent::Coord Load (0.5ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 841581840]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Member Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A003' AND "adherent_members"."id" != 841581840 AND "adherent_members"."organism_id" = 1) LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_coords" ("created_at", "mail", "member_id", "tel", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-10-16 05:51:49.819350"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.819350"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mAdherent::Member Load (2.1ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (2.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (1.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.9ms)[0m COMMIT
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.7ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35mAdherent::Coord Load (0.6ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]]
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.7ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A003' AND "adherent_members"."id" != 841581840 AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_coords" ("created_at", "mail", "member_id", "tel", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-10-16 05:51:49.908456"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.908456"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 841581840]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:49', '2015-10-16 05:51:49')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:49.000000', '2015-10-11 05:51:49.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 278616557)
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 767273998)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 841581840)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 196580812, 278616557)
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:49', '2015-10-16 05:51:49', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:49', '2015-10-16 05:51:49', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.4ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35mAdherent::Coord Load (0.5ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.6ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A003' AND "adherent_members"."id" != 841581840 AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "adherent_coords" ("created_at", "mail", "member_id", "tel", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-10-16 05:51:49.987431"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.987431"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "8.0"], ["created_at", "2015-10-16 05:51:49.992904"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:49.992904"]]
+ [1m[36mAdherent::Adhesion Load (0.9ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 841581840]]
+ [1m[35m (0.6ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 621036344], ["amount", "8.0"], ["created_at", "2015-10-16 05:51:50.000633"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:50.000633"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mAdherent::Member Load (1.5ms)[0m SELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)
+ [1m[36m (1.9ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.7ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36mAdherent::Coord Load (0.5ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 841581840]]
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Member Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A003' AND "adherent_members"."id" != 841581840 AND "adherent_members"."organism_id" = 1) LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_coords" ("created_at", "mail", "member_id", "tel", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-10-16 05:51:50.064080"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:50.064080"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "8.0"], ["created_at", "2015-10-16 05:51:50.069941"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:50.069941"]]
+ [1m[35mAdherent::Adhesion Load (1.3ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 841581840]]
+ [1m[36m (0.7ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 621036344]]
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 621036344], ["amount", "8.0"], ["created_at", "2015-10-16 05:51:50.078678"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:50.078678"]]
+ [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "10.5"], ["created_at", "2015-10-16 05:51:50.086038"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:50.086038"]]
+ [1m[35mAdherent::Adhesion Load (1.2ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 841581840]]
+ [1m[36m (0.5ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 621036344]]
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 621036344], ["amount", "10.5"], ["created_at", "2015-10-16 05:51:50.094673"], ["payment_id", 314492018], ["updated_at", "2015-10-16 05:51:50.094673"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mAdherent::Member Load (2.2ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (2.0ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (1.1ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.0ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.5ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A003' AND "adherent_members"."id" != 841581840 AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_coords" ("created_at", "mail", "member_id", "tel", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-10-16 05:51:50.158059"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:50.158059"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "8.0"], ["created_at", "2015-10-16 05:51:50.162596"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:50.162596"]]
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 841581840]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 621036344], ["amount", "8.0"], ["created_at", "2015-10-16 05:51:50.169172"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:50.169172"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "20.5"], ["created_at", "2015-10-16 05:51:50.174577"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:50.174577"]]
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 841581840]]
+ [1m[35m (0.6ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 621036344], ["amount", "11.0"], ["created_at", "2015-10-16 05:51:50.179623"], ["payment_id", 314492018], ["updated_at", "2015-10-16 05:51:50.179623"]]
+ [1m[35m (0.5ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 302216097], ["amount", "9.5"], ["created_at", "2015-10-16 05:51:50.183006"], ["payment_id", 314492018], ["updated_at", "2015-10-16 05:51:50.183006"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "21.5"], ["created_at", "2015-10-16 05:51:50.186272"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:50.186272"]]
+ [1m[36mAdherent::Adhesion Load (0.8ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 841581840]]
+ [1m[35m (0.5ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 302216097], ["amount", "16.5"], ["created_at", "2015-10-16 05:51:50.191769"], ["payment_id", 314492019], ["updated_at", "2015-10-16 05:51:50.191769"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35mAdherent::Member Load (1.2ms)[0m SELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)
+ [1m[36m (1.7ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 841581840]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Member Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A003' AND "adherent_members"."id" != 841581840 AND "adherent_members"."organism_id" = 1) LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_coords" ("created_at", "mail", "member_id", "tel", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-10-16 05:51:50.247801"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:50.247801"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "8.0"], ["created_at", "2015-10-16 05:51:50.252969"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:50.252969"]]
+ [1m[35mAdherent::Adhesion Load (0.9ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 841581840]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 621036344]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 621036344], ["amount", "8.0"], ["created_at", "2015-10-16 05:51:50.259694"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:50.259694"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "60.0"], ["created_at", "2015-10-16 05:51:50.263797"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:50.263797"]]
+ [1m[35mAdherent::Adhesion Load (0.7ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 841581840]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 621036344]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 621036344], ["amount", "11.0"], ["created_at", "2015-10-16 05:51:50.268989"], ["payment_id", 314492018], ["updated_at", "2015-10-16 05:51:50.268989"]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 302216097]]
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 302216097], ["amount", "26.0"], ["created_at", "2015-10-16 05:51:50.272030"], ["payment_id", 314492018], ["updated_at", "2015-10-16 05:51:50.272030"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mAdherent::Member Load (1.4ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (3.0ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.8ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)
+ [1m[36mFixture Insert (2.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.7ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) AS count_all, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)[0m
+ [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)
+ [1m[36m (41.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.5ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)[0m
+ [1m[35m (1.8ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_members"
+Processing by Adherent::MembersController#destroy as HTML
+ Parameters: {"id"=>"278616557"}
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.3ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.5ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1[0m [["id", 1007489680]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 278616557]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/adherent/members
+Completed 302 Found in 10ms (ActiveRecord: 3.1ms)
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_members"
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_members"[0m
+Processing by Adherent::MembersController#destroy as HTML
+ Parameters: {"id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.2ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 [["id", 1007489680]]
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members
+Completed 302 Found in 10ms (ActiveRecord: 3.5ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)[0m
+ [1m[35m (1.3ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::MembersController#update as HTML
+ Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.5ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."id" != 278616557 AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "adherent_members" SET "name" = $1, "updated_at" = $2 WHERE "adherent_members"."id" = 278616557[0m [["name", "Dalton"], ["updated_at", "2015-10-16 05:51:50.614325"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members/278616557
+Completed 302 Found in 9ms (ActiveRecord: 2.9ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::MembersController#update as HTML
+ Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"278616557"}
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.5ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."id" != 278616557 AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "adherent_members" SET "name" = $1, "updated_at" = $2 WHERE "adherent_members"."id" = 278616557[0m [["name", "Dalton"], ["updated_at", "2015-10-16 05:51:50.629382"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members/278616557
+Completed 302 Found in 10ms (ActiveRecord: 3.1ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::MembersController#update as HTML
+ Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.5ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."id" != 278616557 AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "adherent_members" SET "name" = $1, "updated_at" = $2 WHERE "adherent_members"."id" = 278616557[0m [["name", "Dalton"], ["updated_at", "2015-10-16 05:51:50.643391"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members/278616557
+Completed 302 Found in 9ms (ActiveRecord: 3.0ms)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Processing by Adherent::MembersController#update as HTML
+ Parameters: {"member"=>{"number"=>"A002"}, "id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.2ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Member Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A002' AND "adherent_members"."id" != 278616557 AND "adherent_members"."organism_id" = 1) LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 2.3ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)[0m
+ [1m[35m (2.0ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+Processing by Adherent::MembersController#show as HTML
+ Parameters: {"id"=>"767273998"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 1.3ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 767273998]]
+Processing by Adherent::MembersController#edit as HTML
+ Parameters: {"id"=>"767273998"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]]
+Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 1.3ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)[0m
+ [1m[35m (1.8ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Processing by Adherent::MembersController#create as HTML
+ Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A55", "birthdate"=>"06/06/1955"}}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.5ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A55' AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["birthdate", "1955-06-06"], ["created_at", "2015-10-16 05:51:50.728067"], ["forname", "Jules"], ["name", "Dupont"], ["number", "A55"], ["organism_id", 1], ["updated_at", "2015-10-16 05:51:50.728067"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members/841581841/coord/new
+Completed 302 Found in 9ms (ActiveRecord: 2.2ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Processing by Adherent::MembersController#create as HTML
+ Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A55"}}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 1.1ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Processing by Adherent::MembersController#create as HTML
+ Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A55"}}
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.3ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.4ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A55' AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_members" ("created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-10-16 05:51:50.751701"], ["forname", "Jules"], ["name", "Dupont"], ["number", "A55"], ["organism_id", 1], ["updated_at", "2015-10-16 05:51:50.751701"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members/841581842/coord/new
+Completed 302 Found in 7ms (ActiveRecord: 2.0ms)
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+Processing by Adherent::MembersController#create as HTML
+ Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A55"}}
+ [1m[36mOrganism Load (1.0ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Exists (0.5ms)[0m SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A55' AND "adherent_members"."organism_id" = 1) LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_members" ("created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-10-16 05:51:50.764532"], ["forname", "Jules"], ["name", "Dupont"], ["number", "A55"], ["organism_id", 1], ["updated_at", "2015-10-16 05:51:50.764532"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members/841581843/coord/new
+Completed 302 Found in 8ms (ActiveRecord: 2.7ms)
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Processing by Adherent::MembersController#index as HTML
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.9ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Processing by Adherent::MembersController#index as XLS
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (1.4ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+Sent data Asso de test-16-oct-2015-Membres.csv (19.6ms)
+Completed 200 OK in 46ms (Views: 19.0ms | ActiveRecord: 2.4ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+Processing by Adherent::MembersController#index as HTML
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (1.3ms)[0m SELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+
+Completed 200 OK in 6ms (Views: 1.2ms | ActiveRecord: 2.5ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Processing by Adherent::MembersController#index as CSV
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.3ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (1.5ms)[0m [1mSELECT adherent_members.id, organism_id, number, name, forname, birthdate,
+ adherent_coords.mail AS mail,
+ adherent_coords.tel AS tel,
+ adherent_coords.gsm AS gsm,
+ adherent_coords.office AS office,
+ adherent_coords.address AS address,
+ adherent_coords.zip AS zip,
+ adherent_coords.city AS city,
+ (SELECT to_date FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id
+ ORDER BY to_date DESC LIMIT 1 ) AS m_to_date,
+ (SELECT SUM(adherent_reglements.amount) FROM adherent_reglements,
+ adherent_adhesions
+ WHERE adherent_reglements.adhesion_id = adherent_adhesions.id AND
+ adherent_adhesions.member_id = adherent_members.id) AS t_reglements,
+ (SELECT SUM(amount) FROM adherent_adhesions
+ WHERE adherent_adhesions.member_id = adherent_members.id) AS t_adhesions,
+ (SELECT COUNT(*) FROM adherent_payments
+ WHERE adherent_payments.member_id = adherent_members.id) AS nb_payments
+
+ FROM adherent_members
+ LEFT JOIN adherent_coords ON adherent_members.id = adherent_coords.member_id
+ WHERE organism_id = 1
+[0m
+Sent data Asso de test-16-oct-2015-Membres.csv (0.5ms)
+Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 2.3ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+Processing by Adherent::MembersController#new as HTML
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.9ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 1.6ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.8ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.7ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+Completed 200 OK in 10ms (Views: 1.3ms | ActiveRecord: 2.3ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)
+ [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)
+ [1m[36m (1.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492016]]
+Processing by Adherent::PaymentsController#show as HTML
+ Parameters: {"member_id"=>"841581840", "id"=>"314492016"}
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 841581840]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 314492016 LIMIT 1 [["member_id", 841581840]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492016)[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (621036344, 1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (841581840, 278616557)[0m
+Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 3.0ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:50', '2015-10-16 05:51:50')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:50.000000', '2015-10-11 05:51:50.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:50', '2015-10-16 05:51:50', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:50', '2015-10-16 05:51:50', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.4ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"payment"=>{"mode"=>"CB", "date"=>"16/10/2015"}, "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 2.0ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.2ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"payment"=>{"amount"=>"57", "mode"=>"CB", "date"=>"16/10/2015"}, "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "57.0"], ["created_at", "2015-10-16 05:51:51.026452"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:51.026452"]]
+ [1m[36mAdherent::Adhesion Load (0.8ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:51.032057"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:51.032057"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 3.8ms)
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "adherent_payments"
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"payment"=>{"amount"=>"57", "mode"=>"CB", "date"=>"16/10/2015"}, "member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "57.0"], ["created_at", "2015-10-16 05:51:51.048557"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:51.048557"]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:51.053867"], ["payment_id", 314492018], ["updated_at", "2015-10-16 05:51:51.053867"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/adherent/members/278616557/payments
+Completed 302 Found in 14ms (ActiveRecord: 3.6ms)
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "adherent_payments"
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 1.3ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+Completed 200 OK in 6ms (Views: 1.1ms | ActiveRecord: 1.3ms)
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812)
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:51', '2015-10-16 05:51:51')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (1.1ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.6ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 196580812]]
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 196580812]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1 [["payment_id", 196580812]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 1007489680]]
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1[0m [["payment_id", 196580812]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:51', '2015-10-16 05:51:51')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 841581840)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 669490783, 767273998)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 111394477, 1007489680, 314492016)
+ [1m[36m (1.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.3ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1[0m [["id", 1007489680]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1[0m [["payment_id", 196580812]]
+ [1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 196580812]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1 [["payment_id", 196580812]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 1007489680]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:51', '2015-10-16 05:51:51')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.9ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 314492016]]
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1[0m [["payment_id", 314492016]]
+ [1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" DESC LIMIT 1[0m [["payment_id", 314492016]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492016]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492016]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492016]]
+ [1m[35mAdherent::Adhesion Load (1.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:51', '2015-10-16 05:51:51')
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.5ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 314492016]]
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 [["id", 1007489680]]
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1[0m [["id", 278616557]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492016]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492016]]
+ [1m[36mAdherent::Reglement Load (0.2ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492016]]
+ [1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]]
+ [1m[36mAdherent::Member Load (0.2ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:51', '2015-10-16 05:51:51')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 278616557)[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 767273998)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 314492016, 841581840)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 111394477, 1007489680, 314492016)
+ [1m[36m (1.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:51', '2015-10-16 05:51:51')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 278616557)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 767273998)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 111394477, 1007489680, 314492016)
+ [1m[36m (491.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (1.8ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.7ms)[0m [1mBEGIN[0m
+ [1m[35m (1.0ms)[0m COMMIT
+ [1m[36m (0.8ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (1.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (1.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.7ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (1.0ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:51', '2015-10-16 05:51:51')[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:51.000000', '2015-10-11 05:51:51.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:51', '2015-10-16 05:51:51', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:51', '2015-10-16 05:51:51', 111394477, 1007489680, 314492016)
+ [1m[36m (1.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (2.0ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (2.0ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.9ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.8ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.9ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (2.0ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35mAdherent::Adhesion Load (0.8ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL)
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["amount", "40.0"], ["created_at", "2015-10-16 05:51:52.340322"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:52.340322"]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 841581840]]
+ [1m[36m (0.5ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 621036344]]
+ [1m[35mSQL (0.9ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 621036344], ["amount", "19.0"], ["created_at", "2015-10-16 05:51:52.346245"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:52.346245"]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 302216097]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 302216097], ["amount", "21.0"], ["created_at", "2015-10-16 05:51:52.351018"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:52.351018"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Adhesion Load (0.8ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL)
+ [1m[36mAdherent::Adhesion Load (0.9ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL)[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.7ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.1ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 1007489680]]
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36mAdherent::Adhesion Load (0.8ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL)[0m
+ [1m[35mAdherent::Adhesion Load (0.7ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:52.455996"], ["payment_id", 1], ["updated_at", "2015-10-16 05:51:52.455996"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.3ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 1007489680]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "10.0"], ["created_at", "2015-10-16 05:51:52.510547"], ["payment_id", 1], ["updated_at", "2015-10-16 05:51:52.510547"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (2.0ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "10.0"], ["created_at", "2015-10-16 05:51:52.563018"], ["payment_id", 1], ["updated_at", "2015-10-16 05:51:52.563018"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (2.1ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.7ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:52', '2015-10-16 05:51:52', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:52', '2015-10-16 05:51:52', 111394477, 1007489680, 314492016)
+ [1m[36m (1.7ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:52', '2015-10-16 05:51:52')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:52.000000', '2015-10-11 05:51:52.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)
+ [1m[36m (1.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Adhesion Load (0.3ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)
+ [1m[36m (0.9ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.6ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_coords" ("city", "created_at", "member_id", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["city", "Lille"], ["created_at", "2015-10-16 05:51:53.121170"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:51:53.121170"], ["zip", 59000]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Coord Load (0.4ms)[0m SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.2ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.5ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.5ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_coords"[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 767273998]]
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_coords"
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)
+ [1m[36m (1.1ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Coord Load (0.4ms)[0m [1mSELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.9ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (1.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.0ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 17ms (Views: 8.7ms | ActiveRecord: 2.1ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"66.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["amount", "66.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:53.357383"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:53.357383"]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:53.363704"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:53.363704"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 3.7ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.6ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.5ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.0ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 13.2ms | ActiveRecord: 3.3ms)
+ [1m[36mAdherent::Payment Load (0.5ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.5ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (1.2ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (13.0ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 18ms (Views: 9.3ms | ActiveRecord: 2.5ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"66.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["amount", "66.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:53.495567"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:53.495567"]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:53.501262"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:53.501262"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 4.0ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.5ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.6ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.3ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 21ms (Views: 14.2ms | ActiveRecord: 3.2ms)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) AS count_all, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (31.1ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.9ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.5ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 21ms (Views: 10.7ms | ActiveRecord: 3.0ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"1.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.7ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["amount", "1.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:53.646205"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:53.646205"]]
+ [1m[35mAdherent::Adhesion Load (0.8ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 1007489680], ["amount", "1.66"], ["created_at", "2015-10-16 05:51:53.652999"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:53.652999"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 16ms (ActiveRecord: 4.5ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.5ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.7ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 13.5ms | ActiveRecord: 3.7ms)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) AS count_all, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.2ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (8.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 19ms (Views: 10.8ms | ActiveRecord: 2.4ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"1.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["amount", "1.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:53.766723"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:53.766723"]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 1007489680], ["amount", "1.66"], ["created_at", "2015-10-16 05:51:53.772634"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:53.772634"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 3.4ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.5ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 19ms (Views: 12.1ms | ActiveRecord: 3.2ms)
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)
+ [1m[36m (1.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.7ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 17ms (Views: 9.5ms | ActiveRecord: 2.0ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"46.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "46.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:53.882737"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:53.882737"]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:53.887941"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:53.887941"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 14ms (ActiveRecord: 3.3ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.6ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 18ms (Views: 12.3ms | ActiveRecord: 3.1ms)
+ [1m[35mAdherent::Payment Load (0.7ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements"[0m
+Started GET "/adherent/payments/314492017/reglements/new" for 127.0.0.1 at 2015-10-16 07:51:53 +0200
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Adhesion Load (0.6ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" INNER JOIN "adherent_members" ON "adherent_adhesions"."member_id" = "adherent_members"."id" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_members"."organism_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) [["organism_id", 1]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.5ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (12.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 27ms (Views: 15.1ms | ActiveRecord: 4.9ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:53', '2015-10-16 05:51:53')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:53.000000', '2015-10-11 05:51:53.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:53', '2015-10-16 05:51:53', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:53', '2015-10-16 05:51:53', 111394477, 1007489680, 314492016)
+ [1m[36m (109.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (1.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (1.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.8ms)[0m COMMIT
+ [1m[36m (0.8ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (1.0ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (1.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (1.2ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (1.2ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (1.2ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (1.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.4ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 32ms (Views: 10.4ms | ActiveRecord: 5.9ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"46.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "46.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:54.168089"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:54.168089"]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.5ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:54.173384"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:54.173384"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 16ms (ActiveRecord: 4.6ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.5ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 13.5ms | ActiveRecord: 3.3ms)
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements"[0m
+Started GET "/adherent/payments/314492017/reglements/new" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Adhesion Load (0.8ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" INNER JOIN "adherent_members" ON "adherent_adhesions"."member_id" = "adherent_members"."id" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_members"."organism_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) [["organism_id", 1]]
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (13.5ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 27ms (Views: 15.9ms | ActiveRecord: 5.2ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:54', '2015-10-16 05:51:54')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:54.000000', '2015-10-11 05:51:54.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:54.000000', '2015-10-11 05:51:54.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:54.000000', '2015-10-11 05:51:54.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:54', '2015-10-16 05:51:54', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:54', '2015-10-16 05:51:54', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:54', '2015-10-16 05:51:54', 111394477, 1007489680, 314492016)
+ [1m[36m (52.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (2.2ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (1.2ms)[0m [1mBEGIN[0m
+ [1m[35m (1.4ms)[0m COMMIT
+ [1m[36m (1.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (1.7ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (1.0ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (1.1ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (1.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (1.0ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.9ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 30ms (Views: 9.7ms | ActiveRecord: 4.9ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"46.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "46.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:54.403755"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:54.403755"]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:54.409237"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:54.409237"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 3.5ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.5ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 19ms (Views: 13.1ms | ActiveRecord: 3.1ms)
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements"[0m
+Started GET "/adherent/payments/314492017/reglements/new" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Reglement Load (0.5ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Adhesion Load (0.9ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" INNER JOIN "adherent_members" ON "adherent_adhesions"."member_id" = "adherent_members"."id" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_members"."organism_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) [["organism_id", 1]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (12.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 26ms (Views: 14.8ms | ActiveRecord: 5.1ms)
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:54', '2015-10-16 05:51:54')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:54.000000', '2015-10-11 05:51:54.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:54.000000', '2015-10-11 05:51:54.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:54.000000', '2015-10-11 05:51:54.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 841581840)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:54', '2015-10-16 05:51:54', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:54', '2015-10-16 05:51:54', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:54', '2015-10-16 05:51:54', 111394477, 1007489680, 314492016)
+ [1m[36m (132.7ms)[0m [1mCOMMIT[0m
+ [1m[35m (1.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+ [1m[35m (0.5ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.8ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.9ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.6ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.0ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 24ms (Views: 10.4ms | ActiveRecord: 3.2ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"46.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "46.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:54.712148"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:54.712148"]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:54.717847"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:54.717847"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 16ms (ActiveRecord: 4.0ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.5ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.7ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.8ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 12.3ms | ActiveRecord: 3.4ms)
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements"[0m
+Started GET "/adherent/payments/314492017/reglements/new" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Reglement Load (0.6ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Adhesion Load (0.9ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" INNER JOIN "adherent_members" ON "adherent_adhesions"."member_id" = "adherent_members"."id" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_members"."organism_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) [["organism_id", 1]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (12.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 26ms (Views: 14.8ms | ActiveRecord: 5.0ms)
+ [1m[36mAdherent::Adhesion Load (0.6ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:54', '2015-10-16 05:51:54')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:54.000000', '2015-10-11 05:51:54.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:54.000000', '2015-10-11 05:51:54.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:54.000000', '2015-10-11 05:51:54.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 841581840)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (1.2ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:54', '2015-10-16 05:51:54', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:54', '2015-10-16 05:51:54', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:54', '2015-10-16 05:51:54', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:54', '2015-10-16 05:51:54', 111394477, 1007489680, 314492016)
+ [1m[36m (117.1ms)[0m [1mCOMMIT[0m
+ [1m[35m (2.0ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.7ms)[0m [1mBEGIN[0m
+ [1m[35m (0.7ms)[0m COMMIT
+ [1m[36m (0.7ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (1.0ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:54 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (1.3ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (1.3ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (1.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (1.0ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.5ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 31ms (Views: 11.0ms | ActiveRecord: 5.0ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"46.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.7ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "46.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:55.012041"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:55.012041"]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:55.017395"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.017395"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 3.9ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.6ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.5ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (1.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 21ms (Views: 13.2ms | ActiveRecord: 4.4ms)
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements"[0m
+Started GET "/adherent/payments/314492017/reglements/new" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Adhesion Load (0.9ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" INNER JOIN "adherent_members" ON "adherent_adhesions"."member_id" = "adherent_members"."id" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_members"."organism_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) [["organism_id", 1]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.5ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.5ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (12.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 27ms (Views: 15.6ms | ActiveRecord: 5.3ms)
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+Started POST "/adherent/payments/314492017/reglements" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::ReglementsController#create as HTML
+ Parameters: {"utf8"=>"✓", "reglement"=>{"adhesion_id"=>"621036344"}, "commit"=>"Enregistrer", "payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 621036344]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 621036344], ["amount", "19.0"], ["created_at", "2015-10-16 05:51:55.093466"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.093466"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 13ms (ActiveRecord: 3.7ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680, 621036344)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (841581840, 278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 13.7ms | ActiveRecord: 3.0ms)
+ [1m[35mAdherent::Reglement Load (0.7ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" ORDER BY "adherent_reglements"."id" DESC LIMIT 1
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 621036344]]
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (1.1ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:55', '2015-10-16 05:51:55')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 111394477, 1007489680, 314492016)
+ [1m[36m (89.7ms)[0m [1mCOMMIT[0m
+ [1m[35m (1.8ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.9ms)[0m [1mBEGIN[0m
+ [1m[35m (0.9ms)[0m COMMIT
+ [1m[36m (1.0ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (1.1ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.7ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.7ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.9ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.7ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (10.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 27ms (Views: 14.8ms | ActiveRecord: 3.4ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"46.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "46.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:55.324611"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:55.324611"]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:55.330312"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.330312"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 3.3ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.7ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 14.0ms | ActiveRecord: 3.3ms)
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements"[0m
+Started GET "/adherent/payments/314492017/reglements/new" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.3ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Reglement Load (0.4ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Adhesion Load (0.9ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" INNER JOIN "adherent_members" ON "adherent_adhesions"."member_id" = "adherent_members"."id" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_members"."organism_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) [["organism_id", 1]]
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (12.8ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 27ms (Views: 15.1ms | ActiveRecord: 4.6ms)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+Started POST "/adherent/payments/314492017/reglements" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::ReglementsController#create as HTML
+ Parameters: {"utf8"=>"✓", "reglement"=>{"adhesion_id"=>"621036344"}, "commit"=>"Enregistrer", "payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.3ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 621036344]]
+ [1m[35mAdherent::Reglement Load (0.3ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 621036344], ["amount", "19.0"], ["created_at", "2015-10-16 05:51:55.409966"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.409966"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 13ms (ActiveRecord: 3.8ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680, 621036344)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (841581840, 278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.0ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 19ms (Views: 13.5ms | ActiveRecord: 2.9ms)
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_reglements"
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:55', '2015-10-16 05:51:55')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.9ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 314492016, 841581840)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 111394477, 1007489680, 314492016)
+ [1m[36m (1.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.2ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 17ms (Views: 9.0ms | ActiveRecord: 2.3ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"46.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "46.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:55.520685"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:55.520685"]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:55.526767"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.526767"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 3.7ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 22ms (Views: 16.1ms | ActiveRecord: 3.1ms)
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "adherent_reglements"[0m
+Started GET "/adherent/payments/314492017/reglements/new" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.3ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.3ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Reglement Load (0.3ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36mCACHE (0.1ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mAdherent::Adhesion Load (0.8ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" INNER JOIN "adherent_members" ON "adherent_adhesions"."member_id" = "adherent_members"."id" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_members"."organism_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) [["organism_id", 1]]
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (13.7ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 29ms (Views: 16.8ms | ActiveRecord: 4.5ms)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 841581840]]
+Started POST "/adherent/payments/314492017/reglements" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::ReglementsController#create as HTML
+ Parameters: {"utf8"=>"✓", "reglement"=>{"adhesion_id"=>"621036344"}, "commit"=>"Enregistrer", "payment_id"=>"314492017"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Payment Load (0.3ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 621036344]]
+ [1m[35mAdherent::Reglement Load (0.3ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]]
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 621036344], ["amount", "19.0"], ["created_at", "2015-10-16 05:51:55.608322"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.608322"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 3.9ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.5ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680, 621036344)
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (841581840, 278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.4ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 13.8ms | ActiveRecord: 3.0ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:55', '2015-10-16 05:51:55')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.8ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (10.6ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (1.2ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 18ms (Views: 9.4ms | ActiveRecord: 2.3ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"46.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["amount", "46.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:55.733366"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:55.733366"]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:55.738918"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.738918"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 22ms (ActiveRecord: 3.7ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.5ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.5ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.8ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 19ms (Views: 12.7ms | ActiveRecord: 3.2ms)
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1[0m [["member_id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_reglements"
+Started GET "/adherent/payments/314492017/reglements/new" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"314492017"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 314492017]]
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.4ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.6ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36mAdherent::Reglement Load (0.5ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35mCACHE (0.0ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36mAdherent::Adhesion Load (1.0ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" INNER JOIN "adherent_members" ON "adherent_adhesions"."member_id" = "adherent_members"."id" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_members"."organism_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL)[0m [["organism_id", 1]]
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 621036344]]
+ [1m[35mCACHE (0.0ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 302216097]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (12.6ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 27ms (Views: 14.5ms | ActiveRecord: 5.3ms)
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]]
+Started POST "/adherent/payments/314492017/reglements" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::ReglementsController#create as HTML
+ Parameters: {"utf8"=>"✓", "reglement"=>{"adhesion_id"=>"621036344"}, "commit"=>"Enregistrer", "payment_id"=>"314492017"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Payment Load (0.4ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1[0m [["id", 314492017]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]]
+ [1m[36mAdherent::Reglement Load (0.3ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1[0m [["payment_id", 314492017]]
+ [1m[35m (0.4ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 621036344]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 621036344], ["amount", "19.0"], ["created_at", "2015-10-16 05:51:55.820980"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.820980"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 13ms (ActiveRecord: 4.0ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.6ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.5ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35mAdherent::Reglement Load (0.6ms)[0m SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680, 621036344)[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (841581840, 278616557)
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 13.6ms | ActiveRecord: 3.6ms)
+ [1m[36mAdherent::Adhesion Load (0.7ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 841581840]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:55', '2015-10-16 05:51:55')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:55', '2015-10-16 05:51:55', 111394477, 1007489680, 314492016)
+ [1m[36m (2.0ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.3ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.6ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.4ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 17ms (Views: 8.8ms | ActiveRecord: 1.9ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"50", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "50.0"], ["comment", ""], ["created_at", "2015-10-16 05:51:55.934564"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:55.934564"]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:55.939861"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.939861"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 14ms (ActiveRecord: 3.4ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:55 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.7ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.5ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 19ms (Views: 12.5ms | ActiveRecord: 3.3ms)
+ [1m[35m (1.0ms)[0m SELECT COUNT(*) AS count_all, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:55', '2015-10-16 05:51:55')[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:55.000000', '2015-10-11 05:51:55.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:55', '2015-10-16 05:51:55', 669490783, 767273998)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 111394477, 1007489680, 314492016)
+ [1m[36m (1.7ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Payment Load (0.5ms)[0m [1mSELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:56 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.5ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.5ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 19ms (Views: 9.6ms | ActiveRecord: 2.1ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:56 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"26.66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "26.66"], ["comment", ""], ["created_at", "2015-10-16 05:51:56.053093"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:56.053093"]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:56.058742"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:56.058742"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 14ms (ActiveRecord: 3.3ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:56 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.4ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.6ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.7ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.9ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 13.2ms | ActiveRecord: 3.5ms)
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.6ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:56', '2015-10-16 05:51:56')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 196580812, 278616557)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.6ms)[0m COMMIT
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "adherent_reglements"
+Started GET "/adherent/members/278616557/payments/new" for 127.0.0.1 at 2015-10-16 07:51:56 +0200
+Processing by Adherent::PaymentsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC [["member_id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1[0m [["adhesion_id", 1007489680]]
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.0ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 17ms (Views: 9.3ms | ActiveRecord: 2.2ms)
+Started POST "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:56 +0200
+Processing by Adherent::PaymentsController#create as HTML
+ Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"16/10/2015", "comment"=>"", "amount"=>"50", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_payments" ("amount", "comment", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", "50.0"], ["comment", ""], ["created_at", "2015-10-16 05:51:56.167881"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:56.167881"]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_adhesions.id = adherent_reglements.adhesion_id WHERE "adherent_adhesions"."member_id" = $1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."to_date" ASC[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["adhesion_id", 1007489680], ["amount", "11.66"], ["created_at", "2015-10-16 05:51:56.173397"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:56.173397"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://www.example.com/adherent/members/278616557/payments
+Completed 302 Found in 15ms (ActiveRecord: 3.6ms)
+Started GET "/adherent/members/278616557/payments" for 127.0.0.1 at 2015-10-16 07:51:56 +0200
+Processing by Adherent::PaymentsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Payment Load (0.5ms)[0m SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Reglement Load (0.5ms)[0m [1mSELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812)[0m
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680)
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557)[0m
+ Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_header.html.haml (0.1ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms)
+ Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms)
+Completed 200 OK in 20ms (Views: 12.9ms | ActiveRecord: 3.1ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "adherent_reglements"
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"#[Double Adherent::Payment(id: integer, date: date, amount: decimal, mode: string, member_id: integer, created_at: datetime, updated_at: datetime, comment: string)]"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 1.0ms)
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+Processing by Adherent::ReglementsController#new as HTML
+ Parameters: {"payment_id"=>"#[Double Adherent::Payment(id: integer, date: date, amount: decimal, mode: string, member_id: integer, created_at: datetime, updated_at: datetime, comment: string)]"}
+ [1m[36mOrganism Load (1.4ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 1.8ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+Processing by Adherent::ReglementsController#create as HTML
+ Parameters: {"reglement"=>{"adhesion_id"=>"9"}, "payment_id"=>"#[Double Adherent::Payment(id: integer, date: date, amount: decimal, mode: string, member_id: integer, created_at: datetime, updated_at: datetime, comment: string)]"}
+ [1m[36mOrganism Load (0.6ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+Redirected to http://test.host/adherent/members/%23%5BDouble%20Adherent::Member(id:%20integer,%20number:%20string,%20name:%20string,%20forname:%20string,%20birthdate:%20date,%20created_at:%20datetime,%20updated_at:%20datetime,%20organism_id:%20integer)%5D/payments
+Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
+ [1m[36m (0.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:56', '2015-10-16 05:51:56')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 767273998)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 111394477, 1007489680, 314492016)
+ [1m[36m (2.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1[0m [["member_id", 278616557]]
+Processing by Adherent::AdhesionsController#update as HTML
+ Parameters: {"adhesion"=>{"amount"=>"125"}, "member_id"=>"278616557", "id"=>"1007489680"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1[0m [["member_id", 278616557], ["id", 1007489680]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "adherent_adhesions" SET "amount" = $1, "updated_at" = $2 WHERE "adherent_adhesions"."id" = 1007489680[0m [["amount", "125.0"], ["updated_at", "2015-10-16 05:51:56.292583"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members/278616557/adhesions
+Completed 302 Found in 10ms (ActiveRecord: 2.7ms)
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1[0m [["id", 1007489680]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1[0m [["member_id", 278616557]]
+Processing by Adherent::AdhesionsController#update as HTML
+ Parameters: {"adhesion"=>{"amount"=>"bonjour"}, "member_id"=>"278616557", "id"=>"1007489680"}
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.3ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1[0m [["member_id", 278616557], ["id", 1007489680]]
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 2.2ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1[0m [["member_id", 278616557]]
+Processing by Adherent::AdhesionsController#update as HTML
+ Parameters: {"adhesion"=>{"amount"=>"125"}, "member_id"=>"278616557", "id"=>"1007489680"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1[0m [["member_id", 278616557], ["id", 1007489680]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "adherent_adhesions" SET "amount" = $1, "updated_at" = $2 WHERE "adherent_adhesions"."id" = 1007489680[0m [["amount", "125.0"], ["updated_at", "2015-10-16 05:51:56.328638"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/adherent/members/278616557/adhesions
+Completed 302 Found in 11ms (ActiveRecord: 2.9ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1 [["member_id", 278616557]]
+Processing by Adherent::AdhesionsController#update as HTML
+ Parameters: {"adhesion"=>{"amount"=>"125"}, "member_id"=>"278616557", "id"=>"1007489680"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1 [["member_id", 278616557], ["id", 1007489680]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "adherent_adhesions" SET "amount" = $1, "updated_at" = $2 WHERE "adherent_adhesions"."id" = 1007489680 [["amount", "125.0"], ["updated_at", "2015-10-16 05:51:56.346248"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/adherent/members/278616557/adhesions
+Completed 302 Found in 11ms (ActiveRecord: 2.6ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:56', '2015-10-16 05:51:56')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 767273998)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (1.6ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]]
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"767273998"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 767273998]]
+ [1m[35mAdherent::Adhesion Exists (0.4ms)[0m SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 767273998]]
+Redirected to http://test.host/adherent/members/767273998/adhesions/new
+Completed 302 Found in 6ms (ActiveRecord: 1.8ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1[0m [["member_id", 278616557]]
+Completed 200 OK in 6ms (Views: 1.2ms | ActiveRecord: 1.5ms)
+ [1m[35mAdherent::Adhesion Load (1.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1[0m [["member_id", 278616557]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Processing by Adherent::AdhesionsController#index as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.4ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Exists (0.3ms)[0m SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 278616557]]
+Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 1.5ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:56', '2015-10-16 05:51:56')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 767273998)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 314492016, 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 669490783, 767273998)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 111394477, 1007489680, 314492016)
+ [1m[36m (1.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+Processing by Adherent::AdhesionsController#new as HTML
+ Parameters: {"member_id"=>"278616557"}
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1[0m
+ [1m[35mOrganism Load (0.4ms)[0m SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1[0m [["organism_id", 1], ["id", 278616557]]
+ [1m[35mAdherent::Adhesion Load (0.4ms)[0m SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1[0m [["member_id", 278616557]]
+Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.9ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "organisms"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:56', '2015-10-16 05:51:56')
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_adhesions"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 1007489680, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 621036344, 841581840)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 302216097, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_members"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 767273998)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 841581840)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "adherent_payments"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 196580812, 278616557)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 314492016, 841581840)[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "adherent_coords"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 669490783, 767273998)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_reglements"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 682483592, 1007489680, 196580812)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 832867904, 621036344, 314492016)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 111394477, 1007489680, 314492016)[0m
+ [1m[35m (2.2ms)[0m COMMIT
+ [1m[36m (0.4ms)[0m [1mALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::AdhesionsController#create as HTML
+ Parameters: {"adhesion"=>{"montant"=>"10"}, "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+Unpermitted parameters: montant
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 1.8ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mAdherent::Member Load (0.3ms)[0m [1mSELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1[0m [["id", 278616557]]
+Processing by Adherent::AdhesionsController#create as HTML
+ Parameters: {"adhesion"=>{"amount"=>"57", "to_date"=>"16/10/2016", "from_date"=>"16/10/2015"}, "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.6ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.5ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "57.0"], ["created_at", "2015-10-16 05:51:56.559839"], ["from_date", "2015-10-16"], ["member_id", 278616557], ["to_date", "2016-10-16"], ["updated_at", "2015-10-16 05:51:56.559839"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/adherent/members/278616557/adhesions
+Completed 302 Found in 10ms (ActiveRecord: 2.5ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "adherent_adhesions"[0m
+Processing by Adherent::AdhesionsController#create as HTML
+ Parameters: {"adhesion"=>{"amount"=>"57", "to_date"=>"16/10/2016", "from_date"=>"16/10/2015"}, "member_id"=>"278616557"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.3ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", "57.0"], ["created_at", "2015-10-16 05:51:56.576642"], ["from_date", "2015-10-16"], ["member_id", 278616557], ["to_date", "2016-10-16"], ["updated_at", "2015-10-16 05:51:56.576642"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/adherent/members/278616557/adhesions
+Completed 302 Found in 9ms (ActiveRecord: 2.2ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "adherent_adhesions"
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "organisms"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "organisms" ("id", "title", "status", "created_at", "updated_at") VALUES (1, 'Asso de test', 'Association', '2015-10-16 05:51:56', '2015-10-16 05:51:56')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_adhesions"
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26.66, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 1007489680, 278616557)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (24, '2015-10-16', '2016-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 621036344, 841581840)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_adhesions" ("amount", "from_date", "to_date", "created_at", "updated_at", "id", "member_id") VALUES (26, '2016-10-16', '2017-10-15', '2015-10-11 05:51:56.000000', '2015-10-11 05:51:56.000000', 302216097, 841581840)[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "adherent_members"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A001', 'Dupont', 'Jules', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 278616557)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A002', 'Durand', 'Alain', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 767273998)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "adherent_members" ("organism_id", "number", "name", "forname", "created_at", "updated_at", "id") VALUES (1, 'A003', 'Fidele', 'Che', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 841581840)[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "adherent_payments"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 15, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 196580812, 278616557)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "adherent_payments" ("date", "amount", "mode", "created_at", "updated_at", "id", "member_id") VALUES ('2015-10-11', 39, 'CB', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 314492016, 841581840)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_coords"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_coords" ("mail", "created_at", "updated_at", "id", "member_id") VALUES ('durand@example.com', '2015-10-16 05:51:56', '2015-10-16 05:51:56', 669490783, 767273998)
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "adherent_reglements"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (10, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 682483592, 1007489680, 196580812)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 832867904, 621036344, 314492016)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "adherent_reglements" ("amount", "created_at", "updated_at", "id", "adhesion_id", "payment_id") VALUES (5, '2015-10-16 05:51:56', '2015-10-16 05:51:56', 111394477, 1007489680, 314492016)
+ [1m[36m (2.0ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mAdherent::Member Load (0.4ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.5ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1[0m [["member_id", 278616557]]
+Processing by Adherent::AdhesionsController#edit as HTML
+ Parameters: {"member_id"=>"278616557", "id"=>"1007489680"}
+ [1m[35mOrganism Load (0.5ms)[0m SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1
+ [1m[36mOrganism Load (0.4ms)[0m [1mSELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1[0m
+ [1m[35mAdherent::Member Load (0.5ms)[0m SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]]
+ [1m[36mAdherent::Adhesion Load (0.4ms)[0m [1mSELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1[0m [["member_id", 278616557], ["id", 1007489680]]
+Completed 200 OK in 7ms (Views: 1.2ms | ActiveRecord: 1.8ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m ROLLBACK