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 @@ Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1 [["payment_id", 196580812]] Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]]  (0.3ms) ROLLBACK +  (62.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (8.7ms) DELETE FROM "organisms" + Fixture Insert (37.7ms) 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') + Fixture Delete (10.7ms) DELETE FROM "adherent_adhesions" + Fixture Insert (57.6ms) 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) + Fixture Insert (0.6ms) 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:44:06.000000', '2015-10-11 05:44:06.000000', 621036344, 841581840) + Fixture Insert (0.2ms) 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) + Fixture Delete (12.1ms) DELETE FROM "adherent_members" + Fixture Insert (17.5ms) 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) + Fixture Insert (0.4ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (1.0ms) DELETE FROM "adherent_payments" + Fixture Insert (62.4ms) 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) + Fixture Insert (0.4ms) INSERT 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) + Fixture Delete (7.6ms) DELETE FROM "adherent_coords" + Fixture Insert (39.5ms) INSERT 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) + Fixture Delete (1.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (65.7ms) INSERT 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) + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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', 111394477, 1007489680, 314492016) +  (1.9ms) COMMIT +  (0.6ms) ALTER 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 +  (0.3ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.5ms) ROLLBACK +  (0.4ms) BEGIN + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.7ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) 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:44:07.434486"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:44:07.434486"], ["zip", 59000]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.6ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.6ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.5ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.5ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.7ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.4ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) ROLLBACK +  (1.0ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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:45:09.000000', '2015-10-11 05:45:09.000000', 621036344, 841581840) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) INSERT 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) INSERT 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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', 111394477, 1007489680, 314492016) +  (85.5ms) COMMIT +  (1.3ms) ALTER 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 +  (0.7ms) BEGIN + Adherent::Member Load (0.9ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.6ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.4ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.4ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) ROLLBACK +  (0.8ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.6ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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:45:49.000000', '2015-10-11 05:45:49.000000', 621036344, 841581840) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.5ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) INSERT 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) INSERT 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (28.7ms) COMMIT +  (0.5ms) ALTER 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.2ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) ROLLBACK +  (0.8ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.6ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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:46:07.000000', '2015-10-11 05:46:07.000000', 621036344, 841581840) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.7ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (54.7ms) COMMIT +  (1.8ms) ALTER 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 +  (0.7ms) BEGIN + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.5ms) ROLLBACK +  (0.4ms) BEGIN + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.8ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.8ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.5ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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:46:07.754656"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:46:07.754656"], ["zip", 59000]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) ROLLBACK +  (0.8ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.6ms) 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') + Fixture Delete (0.6ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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:47:13.000000', '2015-10-11 05:47:13.000000', 621036344, 841581840) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.6ms) INSERT 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (71.5ms) COMMIT +  (1.7ms) ALTER 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 +  (0.5ms) BEGIN + Adherent::Member Load (1.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.9ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) SAVEPOINT active_record_1 +  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.2ms) ROLLBACK +  (0.9ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (1.3ms) 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:47:32.000000', '2015-10-11 05:47:32.000000', 621036344, 841581840) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) INSERT 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (124.3ms) COMMIT +  (1.8ms) ALTER 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 +  (0.6ms) BEGIN + Adherent::Member Load (1.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.9ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.1ms) ROLLBACK +  (0.8ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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:47:51.000000', '2015-10-11 05:47:51.000000', 621036344, 841581840) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (51.9ms) COMMIT +  (1.5ms) ALTER 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 +  (0.7ms) BEGIN + Adherent::Member Load (1.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.6ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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:51.771788"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:47:51.771788"], ["zip", 59000]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.7ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.4ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.4ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.9ms) 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 +  (0.1ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.6ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.7ms) 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) + Fixture Insert (0.7ms) 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:49:18.000000', '2015-10-11 05:49:18.000000', 621036344, 841581840) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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', 111394477, 1007489680, 314492016) +  (49.8ms) COMMIT +  (1.6ms) ALTER 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 +  (0.7ms) BEGIN + Adherent::Member Load (1.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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:49:18.742540"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:49:18.742540"], ["zip", 59000]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.2ms) ROLLBACK +  (0.7ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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:50:26.000000', '2015-10-11 05:50:26.000000', 621036344, 841581840) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) INSERT 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (31.6ms) COMMIT +  (0.4ms) ALTER 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 +  (0.3ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.4ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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:50:27.042271"], ["member_id", 278616557], ["updated_at", "2015-10-16 05:50:27.042271"], ["zip", 59000]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) ROLLBACK +  (0.8ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.6ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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:31.000000', '2015-10-11 05:51:31.000000', 621036344, 841581840) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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:31', '2015-10-16 05:51:31', 314492016, 841581840) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (51.9ms) COMMIT +  (1.5ms) ALTER 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 +  (0.8ms) BEGIN + Adherent::Member Load (2.9ms) 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:31 +0200 +Processing by Adherent::CoordsController#new as HTML + Parameters: {"member_id"=>"278616557"} + Organism Load (1.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (2.0ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.4ms) 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 (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) +  (0.6ms) 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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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", ""]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.5ms) 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) +  (0.5ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN + Adherent::Member Load (0.5ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.4ms) 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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", ""]] +  (0.2ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.5ms) 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) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (1.0ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.4ms) 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 (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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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.343430"], ["gsm", ""], ["mail", "joe.dalton@penitencier.us"], ["member_id", 278616557], ["office", ""], ["tel", ""], ["updated_at", "2015-10-16 05:51:32.343430"], ["zip", ""]] +  (0.2ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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 (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) + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.5ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.4ms) 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.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) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +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)]"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) 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/coord +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +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)]"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) 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/coord +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +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)]"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 1.1ms) +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +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)]"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (1.0ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 1.7ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +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)]"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +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)]"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +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)]"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) 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/adhesions/new +Completed 302 Found in 3ms (ActiveRecord: 1.0ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +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)]"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +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)]"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 1.1ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +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)]"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +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)]"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AllpaymentsController#index as HTML + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 49ms (Views: 3.1ms | ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.9ms) BEGIN +  (0.8ms) COMMIT +  (0.8ms) BEGIN +  (0.9ms) ROLLBACK +  (1.6ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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:32.000000', '2015-10-11 05:51:32.000000', 621036344, 841581840) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.6ms) INSERT 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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:32', '2015-10-16 05:51:32', 314492016, 841581840) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) INSERT 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (27.3ms) COMMIT +  (0.5ms) ALTER 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 + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Payment Load (0.5ms) 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"} + Organism Load (1.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 196580812 LIMIT 1 [["member_id", 278616557]] + Adherent::Reglement Load (3.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812) + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557) +  (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = $2 LIMIT 1 [["member_id", 278616557], ["id", 196580812]] +  (0.1ms) BEGIN + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] + SQL (0.3ms) DELETE FROM "adherent_reglements" WHERE "adherent_reglements"."id" = $1 [["id", 682483592]] + SQL (0.2ms) DELETE FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 [["id", 196580812]] +  (679.4ms) COMMIT +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"} + Organism Load (1.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.7ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["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 + Adherent::Payment Load (0.9ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] +  (2.2ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] +  (1.1ms) 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 +  (4.4ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (165.7ms) select table_name from information_schema.views where table_schema = 'adh_test' +  (319.9ms) TRUNCATE TABLE "public"."adherent_coords", "public"."adherent_members", "public"."adherent_adhesions", "public"."organisms", "public"."adherent_payments", "public"."adherent_reglements" RESTART IDENTITY CASCADE; +  (0.7ms) 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 +  (1.3ms) 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 +  (0.6ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.6ms) 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') + Fixture Delete (1.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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:41.000000', '2015-10-11 05:51:41.000000', 621036344, 841581840) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.5ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.7ms) 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) + Fixture Insert (0.4ms) 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:41', '2015-10-16 05:51:41', 314492016, 841581840) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.5ms) INSERT 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (1.7ms) COMMIT +  (0.5ms) 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 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Exists (0.7ms) SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] +  (0.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + CACHE (0.0ms) 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.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"} + Organism Load (1.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (1.1ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (1.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1 [["member_id", 278616557], ["id", 1007489680]] +  (0.2ms) BEGIN + SQL (0.3ms) DELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 [["id", 1007489680]] +  (111.8ms) 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"} + Organism Load (0.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Exists (0.7ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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 (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 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] +  (0.6ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] +  (0.6ms) 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 +  (1.9ms)  SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (2.1ms) select table_name from information_schema.views where table_schema = 'adh_test' +  (213.6ms) TRUNCATE TABLE "public"."adherent_members", "public"."adherent_adhesions", "public"."adherent_coords", "public"."adherent_payments", "public"."adherent_reglements", "public"."organisms" RESTART IDENTITY CASCADE; +  (1.1ms) 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 +  (0.8ms) 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_reglements" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.7ms) 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) + Fixture Insert (1.2ms) 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:43.000000', '2015-10-11 05:51:43.000000', 621036344, 841581840) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.8ms) DELETE FROM "adherent_members" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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:43', '2015-10-16 05:51:43', 314492016, 841581840) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.5ms) INSERT 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.6ms) INSERT 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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', 111394477, 1007489680, 314492016) +  (3.2ms) COMMIT +  (0.4ms) 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 + Adherent::Member Load (0.5ms) 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 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (2.1ms) 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.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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] +  (0.1ms) BEGIN + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.7ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (115.4ms) 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 + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (2.5ms) 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.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) +  (0.9ms) SELECT COUNT(*) FROM "adherent_members" +  (0.4ms) 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_reglements" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL +  (1.9ms) SELECT schemaname || '.' || tablename + FROM pg_tables + WHERE + tablename !~ '_prt_' AND + tablename <> 'schema_migrations' AND + schemaname = ANY (current_schemas(false)) + +  (1.6ms) select table_name from information_schema.views where table_schema = 'adh_test' +  (216.9ms) TRUNCATE TABLE "public"."adherent_members", "public"."adherent_adhesions", "public"."adherent_coords", "public"."adherent_reglements", "public"."organisms", "public"."adherent_payments" RESTART IDENTITY CASCADE; +  (0.8ms) 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 +  (0.7ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.8ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (1.1ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (33.8ms) COMMIT +  (0.5ms) 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 +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Reglement Exists (0.4ms) SELECT 1 AS one FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 LIMIT 1 [["payment_id", 196580812]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] +  (0.3ms) ROLLBACK +  (0.7ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.9ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.6ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.7ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Reglement Exists (0.4ms) SELECT 1 AS one FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 LIMIT 1 [["payment_id", 196580812]] + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] +  (0.4ms) ROLLBACK +  (0.7ms) 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 +  (0.3ms) BEGIN + Fixture Delete (2.2ms) DELETE FROM "organisms" + Fixture Insert (0.8ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.5ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.1ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] +  (0.3ms) ROLLBACK +  (0.9ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (1.4ms) COMMIT +  (0.8ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Reglement Exists (0.4ms) SELECT 1 AS one FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 LIMIT 1 [["payment_id", 196580812]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.8ms) COMMIT +  (0.6ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Reglement Exists (0.4ms) SELECT 1 AS one FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 LIMIT 1 [["payment_id", 196580812]] + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] +  (0.3ms) ROLLBACK +  (0.6ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (2.3ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.8ms) COMMIT +  (0.3ms) 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 +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Adhesion Load (0.8ms) 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]] +  (0.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]] +  (0.3ms) SAVEPOINT active_record_1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.8ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.4ms) 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:45.938080"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:45.938080"]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]] + SQL (0.3ms) 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:45.941849"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:45.941849"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (1.1ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.1ms) COMMIT +  (0.3ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.6ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_reglements" +  (0.3ms) SAVEPOINT active_record_1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.8ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.4ms) 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:46.006933"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:46.006933"]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]] + SQL (0.4ms) 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:46.010354"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:46.010354"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "adherent_reglements" +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.8ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (1.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.4ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_payments" +  (0.2ms) SAVEPOINT active_record_1 + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] +  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "adherent_payments" +  (0.2ms) ROLLBACK +  (0.5ms) 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 +  (0.1ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (1.0ms) 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') + Fixture Delete (1.0ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.9ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.2ms) SAVEPOINT active_record_1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (3.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.7ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.4ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.8ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.2ms) SAVEPOINT active_record_1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.6ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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.190416"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:46.190416"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (1.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (1.3ms) 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) +  (1.5ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.8ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.2ms) SAVEPOINT active_record_1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + SQL (0.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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"]] + Adherent::Adhesion Load (0.9ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.7ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.5ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY "adherent_adhesions"."id" ASC LIMIT 1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.3ms) SAVEPOINT active_record_1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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"]] + Adherent::Adhesion Load (0.6ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.6ms) ROLLBACK +  (0.4ms) 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 +  (0.8ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.4ms) 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) +  (0.4ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.6ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (1.1ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) +  (1.7ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.8ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.5ms) 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.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) + Adherent::Adhesion Load (0.8ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.7ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (1.0ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (1.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Payment Load (0.7ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 196580812 LIMIT 1 [["member_id", 278616557]] + Adherent::Reglement Load (0.8ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557) +  (0.4ms) 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) +  (0.3ms) ROLLBACK +  (0.6ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.8ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Payment Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 196580812 LIMIT 1 [["member_id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557) +  (0.4ms) 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.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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.8ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (1.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Payment Load (0.7ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 196580812 LIMIT 1 [["member_id", 278616557]] + Adherent::Reglement Load (0.9ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557) +  (0.8ms) 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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.8ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (1.4ms) COMMIT +  (0.5ms) 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 +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812) + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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.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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.2ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.8ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (1.1ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.6ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (1.1ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812) + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.8ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] + Adherent::Adhesion Load (0.9ms) 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]] + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.8ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.5ms) 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/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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (1.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.7ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.7ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.5ms) 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) +  (0.4ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.5ms) 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:47.029830"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:47.029830"]] +  (0.2ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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.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) +  (0.5ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.7ms) DELETE FROM "adherent_adhesions" + Fixture Insert (1.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.6ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.4ms) 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.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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.2ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (1.1ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + Adherent::Adhesion Load (0.5ms) 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) +  (0.7ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] +  (0.7ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Exists (0.4ms) SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489681]] + CACHE (0.0ms) 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) +  (0.5ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + Adherent::Adhesion Load (0.6ms) 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 (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) +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.8ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.9ms) 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", "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"]] +  (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Exists (0.3ms) SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489681]] + CACHE (0.0ms) 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.6ms | ActiveRecord: 2.7ms) +  (0.8ms) ROLLBACK +  (0.4ms) 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 +  (0.5ms) BEGIN + Fixture Delete (0.6ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.8ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "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"]] +  (0.4ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Exists (0.4ms) SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489681]] + CACHE (0.0ms) 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.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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Load (0.6ms) 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", 767273998]] +  (0.3ms) 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) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "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"]] +  (0.2ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Exists (0.4ms) SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489682]] + CACHE (0.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1 [["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) +  (0.3ms) ROLLBACK +  (0.3ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.7ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.4ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) 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 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (2.7ms) 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.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) +  (0.5ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) 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 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.3ms) 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.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) +  (0.7ms) SELECT COUNT(*) FROM "adherent_members" +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.7ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.7ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN +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 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + 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) +  (0.5ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +  (0.6ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'ADH1' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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"]] +  (0.2ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 841581841]] + Adherent::Coord Load (0.3ms) 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) +  (0.4ms) SELECT COUNT(*) FROM "adherent_members" +  (0.4ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.6ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.3ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) 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 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.4ms) 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.1ms | ActiveRecord: 2.3ms) + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.7ms) 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 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.4ms) 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 (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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) +  (2.4ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) 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 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.4ms) 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.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) + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Exists (0.4ms) SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + CACHE (0.0ms) 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) +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.5ms) 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 +  (0.9ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) 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 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.8ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.4ms) 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) + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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.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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) 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 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.4ms) 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.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) + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Exists (0.3ms) SELECT 1 AS one FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 LIMIT 1 [["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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Load (0.7ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + Adherent::Adhesion Load (0.4ms) 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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.9ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (28.0ms) COMMIT +  (0.5ms) 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 +  (0.6ms) BEGIN +  (0.3ms) COMMIT +  (0.4ms) 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 + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.6ms) 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) + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1 +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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) 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) +  (0.4ms) ROLLBACK +  (0.5ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (1.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (1.9ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) 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 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (2.3ms) 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) + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" ORDER BY "adherent_members"."id" ASC LIMIT 1 +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 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + 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) +  (0.5ms) ROLLBACK +  (0.5ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.8ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (3.0ms) COMMIT +  (0.6ms) 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 +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.4ms) 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 + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.8ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (2.1ms) 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.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) + Adherent::Member Load (1.0ms) 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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.5ms) 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"} + Organism Load (0.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Coord Load (0.5ms) 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) +  (0.4ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.6ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (1.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (1.1ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.7ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Exists (1.4ms) 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 +  (0.4ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.8ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.8ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.6ms) 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 +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.7ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Exists (0.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."organism_id" = 2) LIMIT 1 +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.5ms) BEGIN + Fixture Delete (1.0ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) +  (1.4ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Exists (0.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.4ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (26.8ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Exists (0.6ms) SELECT 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 +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) +  (3.8ms) COMMIT +  (1.1ms) 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 +  (61.8ms) BEGIN +  (0.4ms) COMMIT +  (0.8ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Exists (0.7ms) 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 +  (0.4ms) ROLLBACK +  (0.6ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.6ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_members" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.7ms) 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) + Fixture Delete (0.8ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.4ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Exists (1.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.6ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.9ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) +  (2.0ms) COMMIT +  (0.6ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A002' AND "adherent_members"."id" != 767273998 AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.5ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.8ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.7ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.5ms) 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) +  (1.5ms) COMMIT +  (0.5ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.2ms) ROLLBACK +  (0.6ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (1.6ms) COMMIT +  (0.6ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 767273998]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.7ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (1.0ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.5ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) +  (1.1ms) COMMIT +  (0.5ms) 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 +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] + Adherent::Adhesion Load (1.1ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + Adherent::Adhesion Load (1.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 767273998]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.9ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (65.1ms) COMMIT +  (0.5ms) 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 +  (1.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] + Adherent::Adhesion Load (0.7ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + Adherent::Adhesion Load (1.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 767273998]] +  (1.2ms) ROLLBACK +  (0.7ms) 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 +  (2.1ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.8ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_members" + Fixture Insert (1.1ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Insert (2.0ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.8ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.7ms) 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) + Fixture Insert (1.9ms) 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) +  (2.3ms) COMMIT +  (0.5ms) 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 +  (0.6ms) BEGIN +  (0.4ms) COMMIT +  (0.6ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 278616557]] +  (0.2ms) ROLLBACK +  (0.6ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.8ms) DELETE FROM "organisms" + Fixture Insert (0.6ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.7ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) +  (1.5ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.8ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (1.4ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.9ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.8ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (19.6ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) 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 + SQL (1.0ms) 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.576194"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.576194"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + Adherent::Member Load (2.1ms) 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 + +  (0.3ms) ROLLBACK +  (0.6ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.7ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.8ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.9ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.2ms) COMMIT +  (0.6ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) 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 + SQL (0.4ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + Adherent::Member Load (1.8ms) 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 + +  (0.5ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.8ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) +  (1.5ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) 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 + SQL (0.6ms) 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.718741"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.718741"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + Adherent::Member Load (1.7ms) 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 + +  (0.4ms) ROLLBACK +  (0.5ms) 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 +  (0.5ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.8ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (2.8ms) COMMIT +  (0.5ms) 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 +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) 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 + SQL (0.4ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + Adherent::Member Load (2.1ms) 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 + +  (0.4ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (2.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_coords" + Fixture Insert (0.8ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (1.3ms) 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) +  (1.9ms) COMMIT +  (0.7ms) 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 +  (0.4ms) BEGIN +  (0.5ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Coord Load (0.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]] +  (0.4ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.7ms) 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 + SQL (0.5ms) 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.908456"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.908456"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 841581840]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.6ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_payments" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Delete (0.7ms) DELETE FROM "adherent_coords" + Fixture Insert (0.6ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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) +  (2.4ms) COMMIT +  (0.5ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) 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 + SQL (0.6ms) 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.987431"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:49.987431"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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"]] + Adherent::Adhesion Load (0.9ms) 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]] +  (0.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.5ms) 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.000633"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:50.000633"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + Adherent::Member Load (1.5ms) 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 + +  (0.4ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.9ms) COMMIT +  (0.5ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.7ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]] +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) 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 + SQL (0.5ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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.069941"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:50.069941"]] + Adherent::Adhesion Load (1.3ms) 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]] +  (0.7ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.7ms) 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"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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"]] + Adherent::Adhesion Load (1.2ms) 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]] +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.6ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + Adherent::Member Load (2.2ms) 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 + +  (0.4ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (2.0ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (1.1ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) 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 + SQL (0.5ms) 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.158059"], ["mail", "bonjour@example.com"], ["member_id", 841581840], ["tel", "01.02.03.04.05"], ["updated_at", "2015-10-16 05:51:50.158059"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.4ms) 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.169172"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:50.169172"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.5ms) 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.179623"], ["payment_id", 314492018], ["updated_at", "2015-10-16 05:51:50.179623"]] +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]] + SQL (0.4ms) 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", "9.5"], ["created_at", "2015-10-16 05:51:50.183006"], ["payment_id", 314492018], ["updated_at", "2015-10-16 05:51:50.183006"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.8ms) 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]] +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]] + SQL (0.4ms) 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", "16.5"], ["created_at", "2015-10-16 05:51:50.191769"], ["payment_id", 314492019], ["updated_at", "2015-10-16 05:51:50.191769"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + Adherent::Member Load (1.2ms) 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 + +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.7ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 841581840]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) 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 + SQL (0.5ms) 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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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.252969"], ["date", "2015-10-16"], ["member_id", 841581840], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:50.252969"]] + Adherent::Adhesion Load (0.9ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.4ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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"]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.4ms) 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"]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]] + SQL (0.5ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + Adherent::Member Load (1.4ms) 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 + +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (3.0ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.8ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (2.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.7ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.6ms) 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]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.7ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) +  (41.3ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 767273998]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_members" +Processing by Adherent::MembersController#destroy as HTML + Parameters: {"id"=>"278616557"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + SQL (0.4ms) DELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 [["id", 1007489680]] + SQL (0.3ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 278616557]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members +Completed 302 Found in 10ms (ActiveRecord: 3.1ms) +  (0.4ms) SELECT COUNT(*) FROM "adherent_members" + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_members" +Processing by Adherent::MembersController#destroy as HTML + Parameters: {"id"=>"278616557"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + SQL (0.5ms) DELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 [["id", 1007489680]] + SQL (0.3ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 278616557]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members +Completed 302 Found in 10ms (ActiveRecord: 3.5ms) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.3ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +Processing by Adherent::MembersController#update as HTML + Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"278616557"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) 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 + SQL (0.4ms) UPDATE "adherent_members" SET "name" = $1, "updated_at" = $2 WHERE "adherent_members"."id" = 278616557 [["name", "Dalton"], ["updated_at", "2015-10-16 05:51:50.614325"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557 +Completed 302 Found in 9ms (ActiveRecord: 2.9ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +Processing by Adherent::MembersController#update as HTML + Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"278616557"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) 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 + SQL (0.4ms) UPDATE "adherent_members" SET "name" = $1, "updated_at" = $2 WHERE "adherent_members"."id" = 278616557 [["name", "Dalton"], ["updated_at", "2015-10-16 05:51:50.629382"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557 +Completed 302 Found in 10ms (ActiveRecord: 3.1ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +Processing by Adherent::MembersController#update as HTML + Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"278616557"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) 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 + SQL (0.4ms) UPDATE "adherent_members" SET "name" = $1, "updated_at" = $2 WHERE "adherent_members"."id" = 278616557 [["name", "Dalton"], ["updated_at", "2015-10-16 05:51:50.643391"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557 +Completed 302 Found in 9ms (ActiveRecord: 3.0ms) + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A002' AND "adherent_members"."id" != 278616557 AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 +Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 2.3ms) +  (0.4ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +Processing by Adherent::MembersController#show as HTML + Parameters: {"id"=>"767273998"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) 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) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +Processing by Adherent::MembersController#edit as HTML + Parameters: {"id"=>"767273998"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) 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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.6ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +Processing by Adherent::MembersController#create as HTML + Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A55", "birthdate"=>"06/06/1955"}} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A55' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/841581841/coord/new +Completed 302 Found in 9ms (ActiveRecord: 2.2ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Adherent::MembersController#create as HTML + Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A55"}} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 1.1ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Adherent::MembersController#create as HTML + Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A55"}} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A55' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/841581842/coord/new +Completed 302 Found in 7ms (ActiveRecord: 2.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +Processing by Adherent::MembersController#create as HTML + Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A55"}} + Organism Load (1.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A55' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/841581843/coord/new +Completed 302 Found in 8ms (ActiveRecord: 2.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Adherent::MembersController#index as HTML + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Adherent::MembersController#index as XLS + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.4ms) 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 + +Sent data Asso de test-16-oct-2015-Membres.csv (19.6ms) +Completed 200 OK in 46ms (Views: 19.0ms | ActiveRecord: 2.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Adherent::MembersController#index as HTML + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.3ms) 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) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Adherent::MembersController#index as CSV + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.5ms) 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 + +Sent data Asso de test-16-oct-2015-Membres.csv (0.5ms) +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 2.3ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Adherent::MembersController#new as HTML + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 1.6ms) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"278616557"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.7ms) 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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.7ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Payment Load (0.4ms) 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"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 841581840]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 AND "adherent_payments"."id" = 314492016 LIMIT 1 [["member_id", 841581840]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492016) + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (621036344, 1007489680) + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (841581840, 278616557) +Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 3.0ms) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.4ms) COMMIT +  (0.3ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"payment"=>{"mode"=>"CB", "date"=>"16/10/2015"}, "member_id"=>"278616557"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 +Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 2.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"payment"=>{"amount"=>"57", "mode"=>"CB", "date"=>"16/10/2015"}, "member_id"=>"278616557"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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"]] + Adherent::Adhesion Load (0.8ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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.032057"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:51.032057"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557/payments +Completed 302 Found in 15ms (ActiveRecord: 3.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.5ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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.048557"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:51.048557"]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.6ms) 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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557/payments +Completed 302 Found in 14ms (ActiveRecord: 3.6ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_payments" +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"278616557"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) 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) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"278616557"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) 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) + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (196580812) + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" IN (278616557) + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (1.1ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1 [["payment_id", 196580812]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1 [["payment_id", 196580812]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.6ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 196580812]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + SQL (0.3ms) DELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 [["id", 1007489680]] + SQL (0.3ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 278616557]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1 [["payment_id", 196580812]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 196580812]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1 [["payment_id", 196580812]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.3ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.2ms) 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) +  (1.9ms) COMMIT +  (0.3ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492016]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" ASC LIMIT 1 [["payment_id", 314492016]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 ORDER BY "adherent_reglements"."id" DESC LIMIT 1 [["payment_id", 314492016]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492016]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492016]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492016]] + Adherent::Adhesion Load (1.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.2ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492016]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + SQL (0.2ms) DELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 [["id", 1007489680]] + SQL (0.2ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 278616557]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492016]] +  (0.3ms) SELECT COUNT(*) FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492016]] + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492016]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_coords" + Fixture Insert (0.5ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.7ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_members" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (491.6ms) COMMIT +  (1.8ms) 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 +  (0.7ms) BEGIN +  (1.0ms) COMMIT +  (0.8ms) BEGIN + Adherent::Adhesion Load (1.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.8ms) ROLLBACK +  (1.5ms) 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 +  (0.7ms) BEGIN + Fixture Delete (0.8ms) DELETE FROM "organisms" + Fixture Insert (1.0ms) 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') + Fixture Delete (0.6ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.6ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (2.0ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.4ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (1.9ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.8ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.9ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.3ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.5ms) 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 +  (0.4ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.2ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Adhesion Load (0.8ms) 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) +  (0.2ms) SAVEPOINT active_record_1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" = $1 LIMIT 1 [["id", 1]] + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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"]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + SQL (0.9ms) 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"]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]] + SQL (0.4ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.8ms) 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) + Adherent::Adhesion Load (0.9ms) 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) +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.2ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.7ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.1ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] + Adherent::Adhesion Load (0.8ms) 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) + Adherent::Adhesion Load (0.7ms) 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) +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.5ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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:52.455996"], ["payment_id", 1], ["updated_at", "2015-10-16 05:51:52.455996"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) +  (2.3ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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.0"], ["created_at", "2015-10-16 05:51:52.510547"], ["payment_id", 1], ["updated_at", "2015-10-16 05:51:52.510547"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.4ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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.0"], ["created_at", "2015-10-16 05:51:52.563018"], ["payment_id", 1], ["updated_at", "2015-10-16 05:51:52.563018"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.2ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.8ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.5ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.1ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.2ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.7ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (1.5ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.5ms) 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 +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.6ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.4ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.6ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.7ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (0.9ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.3ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.8ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (1.2ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.5ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 767273998]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 767273998]] + SQL (0.4ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 669490783]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 767273998]] + SQL (0.3ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 767273998]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.9ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.1ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = $1 LIMIT 1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.2ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.9ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (1.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.3ms) 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"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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", "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"]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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"]] +  (0.3ms) 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:53 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"278616557"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.5ms) 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) + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) ROLLBACK +  (1.2ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (13.0ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.4ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "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"]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.5ms) 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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.5ms) 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) +  (0.7ms) 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]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (31.1ms) COMMIT +  (0.5ms) 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 +  (0.3ms) BEGIN +  (0.4ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.9ms) 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]] +  (0.5ms) 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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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", "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"]] + Adherent::Adhesion Load (0.8ms) 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]] +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.5ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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) +  (0.7ms) 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]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.4ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.2ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "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"]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.5ms) 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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.5ms) 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) + Adherent::Adhesion Load (0.5ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.7ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.3ms) 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.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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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.887941"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:53.887941"]] +  (0.2ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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.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) + Adherent::Payment Load (0.7ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_reglements" +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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Adhesion Load (0.6ms) 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]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.5ms) 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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.5ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (109.8ms) COMMIT +  (1.4ms) 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 +  (1.2ms) BEGIN +  (0.8ms) COMMIT +  (0.8ms) BEGIN + Adherent::Member Load (1.0ms) 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"} + Organism Load (1.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (1.2ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (1.2ms) 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]] +  (1.0ms) 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.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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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"]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.6ms) 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:54.173384"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:54.173384"]] +  (0.3ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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.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) + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] +  (0.6ms) SELECT COUNT(*) FROM "adherent_reglements" +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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Adhesion Load (0.8ms) 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]] + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.3ms) 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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) INSERT 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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:54.000000', '2015-10-11 05:51:54.000000', 1007489680, 278616557) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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:54.000000', '2015-10-11 05:51:54.000000', 302216097, 841581840) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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:54', '2015-10-16 05:51:54', 196580812, 278616557) + Fixture Insert (0.5ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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', 832867904, 621036344, 314492016) + Fixture Insert (0.3ms) 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) +  (52.6ms) COMMIT +  (2.2ms) 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 +  (1.2ms) BEGIN +  (1.4ms) COMMIT +  (1.3ms) BEGIN + Adherent::Member Load (1.7ms) 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"} + Organism Load (1.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (1.1ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (1.0ms) 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]] +  (0.9ms) 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.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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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:54.409237"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:54.409237"]] +  (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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.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) + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_reglements" +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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Adhesion Load (0.9ms) 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]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.4ms) 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) +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) INSERT 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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:54.000000', '2015-10-11 05:51:54.000000', 1007489680, 278616557) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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:54.000000', '2015-10-11 05:51:54.000000', 302216097, 841581840) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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:54', '2015-10-16 05:51:54', 196580812, 278616557) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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', 832867904, 621036344, 314492016) + Fixture Insert (0.5ms) 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) +  (132.7ms) COMMIT +  (1.5ms) 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 +  (0.5ms) BEGIN +  (0.5ms) COMMIT +  (0.5ms) BEGIN + Adherent::Member Load (0.8ms) 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"} + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.6ms) 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]] +  (0.4ms) 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.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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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"]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.5ms) 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:54.717847"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:54.717847"]] +  (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.7ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.5ms) 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.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) + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_reglements" +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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Adhesion Load (0.9ms) 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]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.3ms) 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) + Adherent::Adhesion Load (0.6ms) 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]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) INSERT 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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:54.000000', '2015-10-11 05:51:54.000000', 1007489680, 278616557) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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:54.000000', '2015-10-11 05:51:54.000000', 302216097, 841581840) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.6ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Delete (0.2ms) DELETE FROM "adherent_payments" + Fixture Insert (0.2ms) 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:54', '2015-10-16 05:51:54', 196580812, 278616557) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (1.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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', 832867904, 621036344, 314492016) + Fixture Insert (0.3ms) 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) +  (117.1ms) COMMIT +  (2.0ms) 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 +  (0.7ms) BEGIN +  (0.7ms) COMMIT +  (0.7ms) BEGIN + Adherent::Member Load (1.0ms) 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"} + Organism Load (1.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (1.3ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (1.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (1.0ms) 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]] +  (0.5ms) 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.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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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.017395"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.017395"]] +  (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (1.3ms) 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.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) + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] +  (0.5ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Adhesion Load (0.9ms) 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]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.5ms) 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) + Adherent::Member Load (0.5ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680, 621036344) + Adherent::Member Load (0.4ms) 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 (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) + Adherent::Reglement Load (0.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" ORDER BY "adherent_reglements"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.2ms) ROLLBACK +  (0.4ms) 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 +  (1.1ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.4ms) 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') + Fixture Delete (0.5ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (89.7ms) COMMIT +  (1.8ms) 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 +  (0.9ms) BEGIN +  (0.9ms) COMMIT +  (1.0ms) BEGIN + Adherent::Member Load (1.1ms) 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"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.9ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.7ms) 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]] +  (0.5ms) 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 (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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] + Adherent::Adhesion Load (0.3ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.6ms) 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.330312"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.330312"]] +  (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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.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) + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] +  (0.5ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Adhesion Load (0.9ms) 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]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.3ms) 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) + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]] + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680, 621036344) + Adherent::Member Load (0.4ms) 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.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) +  (0.4ms) SELECT COUNT(*) FROM "adherent_reglements" +  (0.1ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.2ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.9ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.6ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (1.8ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.2ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.4ms) 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.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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.5ms) 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.526767"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.526767"]] +  (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.5ms) 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 (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) + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] +  (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + CACHE (0.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Adhesion Load (0.8ms) 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]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.4ms) 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) + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]] + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680, 621036344) + Adherent::Member Load (0.5ms) 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.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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.5ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.8ms) 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) + Fixture Insert (0.4ms) 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) +  (10.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN +  (0.5ms) COMMIT +  (0.3ms) BEGIN + Adherent::Member Load (1.2ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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.733366"], ["date", "2015-10-16"], ["member_id", 278616557], ["mode", "CB"], ["updated_at", "2015-10-16 05:51:55.733366"]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.6ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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) + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 ORDER BY "adherent_payments"."id" DESC LIMIT 1 [["member_id", 278616557]] +  (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] + Adherent::Adhesion Load (1.0ms) 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]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 841581840]] +  (0.3ms) 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.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) + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", 314492017]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 621036344]] + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = $1 [["payment_id", 314492017]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 621036344]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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.820980"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.820980"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) 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: 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680, 621036344) + Adherent::Member Load (0.4ms) 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) + Adherent::Adhesion Load (0.7ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 302216097]] +  (0.3ms) ROLLBACK +  (0.6ms) 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 +  (0.2ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.2ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.0ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.6ms) 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]] +  (0.3ms) 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.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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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"]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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.939861"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:55.939861"]] +  (0.2ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.5ms) 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.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) +  (1.0ms) 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]] +  (0.3ms) ROLLBACK +  (0.5ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.6ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.7ms) COMMIT +  (0.6ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] +  (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.4ms) 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.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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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:56.058742"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:56.058742"]] +  (0.2ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.7ms) 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.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) + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.6ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.2ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.7ms) 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 +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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]] +  (0.4ms) 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.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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] + Adherent::Adhesion Load (0.5ms) 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]] +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = $1 [["adhesion_id", 1007489680]] + SQL (0.4ms) 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:56.173397"], ["payment_id", 314492017], ["updated_at", "2015-10-16 05:51:56.173397"]] +  (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = $1 [["member_id", 278616557]] + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IN (314492017, 196580812) + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" IN (1007489680) + Adherent::Member Load (0.4ms) 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.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) +  (0.5ms) SELECT COUNT(*) FROM "adherent_reglements" +  (0.3ms) ROLLBACK +  (0.2ms) 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)]"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) 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)]"} + Organism Load (1.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 +Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 1.8ms) +  (0.4ms) ROLLBACK +  (0.3ms) 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)]"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) 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) +  (0.6ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.5ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.2ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.3ms) COMMIT +  (0.4ms) 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 +  (0.3ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1 [["member_id", 278616557], ["id", 1007489680]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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.292583"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557/adhesions +Completed 302 Found in 10ms (ActiveRecord: 2.7ms) + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", 1007489680]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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"=>"bonjour"}, "member_id"=>"278616557", "id"=>"1007489680"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1 [["member_id", 278616557], ["id", 1007489680]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 +Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 2.2ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.5ms) 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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1 [["member_id", 278616557], ["id", 1007489680]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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.328638"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557/adhesions +Completed 302 Found in 11ms (ActiveRecord: 2.9ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1 [["member_id", 278616557], ["id", 1007489680]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557/adhesions +Completed 302 Found in 11ms (ActiveRecord: 2.6ms) +  (0.4ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) +  (1.6ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 767273998]] + Adherent::Adhesion Exists (0.4ms) 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) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Exists (0.3ms) 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.2ms | ActiveRecord: 1.5ms) + Adherent::Adhesion Load (1.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Exists (0.3ms) 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) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (1.5ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) 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"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 [["member_id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 ORDER BY to_date DESC LIMIT 1 [["member_id", 278616557]] +Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.9ms) +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.3ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.3ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_members" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM "adherent_coords" + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) +  (2.2ms) COMMIT +  (0.4ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +Processing by Adherent::AdhesionsController#create as HTML + Parameters: {"adhesion"=>{"montant"=>"10"}, "member_id"=>"278616557"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.4ms) 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 +  (0.3ms) SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 +Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 1.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["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"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557/adhesions +Completed 302 Found in 10ms (ActiveRecord: 2.5ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_adhesions" +Processing by Adherent::AdhesionsController#create as HTML + Parameters: {"adhesion"=>{"amount"=>"57", "to_date"=>"16/10/2016", "from_date"=>"16/10/2015"}, "member_id"=>"278616557"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/278616557/adhesions +Completed 302 Found in 9ms (ActiveRecord: 2.2ms) +  (0.5ms) SELECT COUNT(*) FROM "adherent_adhesions" +  (0.3ms) ROLLBACK +  (0.4ms) 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 +  (0.3ms) BEGIN + Fixture Delete (0.4ms) DELETE FROM "organisms" + Fixture Insert (0.3ms) 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') + Fixture Delete (0.4ms) DELETE FROM "adherent_adhesions" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.5ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.5ms) DELETE FROM "adherent_members" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_payments" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_coords" + Fixture Insert (0.4ms) 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) + Fixture Delete (0.4ms) DELETE FROM "adherent_reglements" + Fixture Insert (0.4ms) 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) + Fixture Insert (0.3ms) 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) + Fixture Insert (0.4ms) 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) +  (2.0ms) COMMIT +  (0.5ms) 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 +  (0.2ms) BEGIN + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", 278616557]] + Adherent::Adhesion Load (0.5ms) 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#edit as HTML + Parameters: {"member_id"=>"278616557", "id"=>"1007489680"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."id" IS NULL LIMIT 1 + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" ORDER BY "organisms"."id" ASC LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = $1 AND "adherent_members"."id" = $2 LIMIT 1 [["organism_id", 1], ["id", 278616557]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = $1 AND "adherent_adhesions"."id" = $2 LIMIT 1 [["member_id", 278616557], ["id", 1007489680]] +Completed 200 OK in 7ms (Views: 1.2ms | ActiveRecord: 1.8ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ROLLBACK