Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 32.74 KB | None | 0 0
  1.   ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  2.    (0.2ms)  BEGIN
  3. Started GET "/sign_in" for 127.0.0.1 at 2017-07-20 17:41:34 +0200
  4. Processing by SessionsController#new as HTML
  5.   Rendered devise/sessions/new.html.haml within layouts/simple (1264.5ms)
  6.   Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
  7.   Rendered shared_partials/_favicon.html.erb (1.9ms)
  8. Completed 200 OK in 1321ms (Views: 1291.5ms | ActiveRecord: 3.7ms)
  9. Started POST "/sign_in" for 127.0.0.1 at 2017-07-20 17:41:36 +0200
  10. Processing by SessionsController#create as HTML
  11.   Parameters: {"utf8"=>"✓", "user"=>{"email"=>"sharie.durgan@beckerterry.com", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Connexion"}
  12.   SQL (0.8ms)  SELECT  "users"."id" AS t0_r0, "users"."email" AS t0_r1, "users"."encrypted_password" AS t0_r2, "users"."reset_password_token" AS t0_r3, "users"."reset_password_sent_at" AS t0_r4, "users"."remember_created_at" AS t0_r5, "users"."sign_in_count" AS t0_r6, "users"."current_sign_in_at" AS t0_r7, "users"."last_sign_in_at" AS t0_r8, "users"."current_sign_in_ip" AS t0_r9, "users"."last_sign_in_ip" AS t0_r10, "users"."created_at" AS t0_r11, "users"."updated_at" AS t0_r12, "users"."confirmation_token" AS t0_r13, "users"."confirmed_at" AS t0_r14, "users"."confirmation_sent_at" AS t0_r15, "users"."name" AS t0_r16, "users"."last_name" AS t0_r17, "users"."phone" AS t0_r18, "users"."birth_date" AS t0_r19, "users"."civility" AS t0_r20, "users"."attitude" AS t0_r21, "users"."hobbies" AS t0_r22, "users"."avatar_file_name" AS t0_r23, "users"."avatar_content_type" AS t0_r24, "users"."avatar_file_size" AS t0_r25, "users"."avatar_updated_at" AS t0_r26, "users"."provider" AS t0_r27, "users"."uid" AS t0_r28, "users"."activity" AS t0_r29, "users"."area_of_interests" AS t0_r30, "user_profiles"."id" AS t1_r0, "user_profiles"."user_id" AS t1_r1, "user_profiles"."discussion" AS t1_r2, "user_profiles"."balance" AS t1_r3, "user_profiles"."checkout" AS t1_r4, "user_profiles"."disability" AS t1_r5, "user_profiles"."locality_id" AS t1_r6, "user_profiles"."disability_support" AS t1_r7, "user_profiles"."iban_name" AS t1_r8, "user_profiles"."iban_number" AS t1_r9, "user_profiles"."bic" AS t1_r10 FROM "users" LEFT OUTER JOIN "user_profiles" ON "user_profiles"."user_id" = "users"."id" WHERE "users"."email" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["email", "sharie.durgan@beckerterry.com"]]
  13.    (0.2ms)  SAVEPOINT active_record_1
  14.   SQL (0.4ms)  UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "sign_in_count" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["last_sign_in_at", "2017-07-20 13:42:17.327473"], ["current_sign_in_at", "2017-07-20 15:41:36.263029"], ["sign_in_count", 5], ["updated_at", "2017-07-20 15:41:36.263899"], ["id", 2]]
  15.    (0.1ms)  RELEASE SAVEPOINT active_record_1
  16.    (0.7ms)        SELECT
  17.       (SELECT COUNT(*) FROM accompaniment_people WHERE status IN (7,14) AND user_id = 2)
  18.       AS activity,
  19.       (SELECT COUNT(DISTINCT sender_id) FROM messages WHERE read = False AND sender_id != 2
  20.       AND receiver_id = 2)  AS messages
  21. 
  22.   SQL (0.6ms)  SELECT "accompaniments"."id" AS t0_r0, "accompaniments"."a_type" AS t0_r1, "accompaniments"."frequency" AS t0_r2, "accompaniments"."date" AS t0_r3, "accompaniments"."status" AS t0_r4, "accompaniments"."created_at" AS t0_r5, "accompaniments"."updated_at" AS t0_r6, "accompaniments"."accompaniment_recurrence_id" AS t0_r7, "accompaniments"."transport_type" AS t0_r8, "accompaniments"."description" AS t0_r9, "accompaniments"."travel_type" AS t0_r10, "accompaniments"."starting_point_id" AS t0_r11, "accompaniments"."ending_point_id" AS t0_r12, "accompaniments"."free_travel_for_follower" AS t0_r13, "accompaniments"."luggage_port" AS t0_r14, "accompaniment_people"."id" AS t1_r0, "accompaniment_people"."accompaniment_id" AS t1_r1, "accompaniment_people"."ap_type" AS t1_r2, "accompaniment_people"."user_id" AS t1_r3, "accompaniment_people"."created_at" AS t1_r4, "accompaniment_people"."updated_at" AS t1_r5, "accompaniment_people"."owner" AS t1_r6, "accompaniment_people"."status" AS t1_r7, "accompaniment_people"."transport_type" AS t1_r8 FROM "accompaniments" INNER JOIN "accompaniment_people" ON "accompaniment_people"."accompaniment_id" = "accompaniments"."id" LEFT OUTER JOIN "accompaniment_people" "owners_accompaniments" ON "owners_accompaniments"."accompaniment_id" = "accompaniments"."id" AND "owners_accompaniments"."owner" = $1 WHERE "accompaniment_people"."user_id" = $2 AND (accompaniments.status IN (2,4,5) AND date < ('2017-07-20 15:41:36.271278'))  [["owner", "t"], ["user_id", 2]]
  23.   UserStatistic Load (0.4ms)  SELECT  "user_statistics".* FROM "user_statistics" WHERE "user_statistics"."user_id" = $1 LIMIT 1  [["user_id", 2]]
  24.   SQL (2.3ms)  SELECT  DISTINCT "accompaniment_people"."id" FROM "accompaniment_people" LEFT OUTER JOIN "accompaniments" ON "accompaniments"."id" = "accompaniment_people"."accompaniment_id" LEFT OUTER JOIN "places" ON "places"."id" = "accompaniments"."starting_point_id" LEFT OUTER JOIN "places" "ending_points_accompaniments" ON "ending_points_accompaniments"."id" = "accompaniments"."ending_point_id" LEFT OUTER JOIN "accompaniment_people" "owners_accompaniments" ON "owners_accompaniments"."accompaniment_id" = "accompaniments"."id" AND "owners_accompaniments"."owner" = $1 LEFT OUTER JOIN "users" ON "users"."id" = "owners_accompaniments"."user_id" LEFT OUTER JOIN "accompaniment_people" "pending_bookings_accompaniments" ON "pending_bookings_accompaniments"."accompaniment_id" = "accompaniments"."id" AND "pending_bookings_accompaniments"."status" = $2 AND "pending_bookings_accompaniments"."owner" IS NULL LEFT OUTER JOIN "users" "users_accompaniment_people" ON "users_accompaniment_people"."id" = "pending_bookings_accompaniments"."user_id" LEFT OUTER JOIN "accompaniments" "accompaniments_accompaniment_people" ON "accompaniments_accompaniment_people"."id" = "pending_bookings_accompaniments"."accompaniment_id" LEFT OUTER JOIN "non_urban_accompaniment_times" ON "non_urban_accompaniment_times"."accompaniment_id" = "accompaniments_accompaniment_people"."id" LEFT OUTER JOIN "accompaniment_people" "validated_bookings_accompaniments" ON "validated_bookings_accompaniments"."accompaniment_id" = "accompaniments"."id" AND "validated_bookings_accompaniments"."status" IN (4, 7, 8, 9, 10) AND "validated_bookings_accompaniments"."owner" IS NULL LEFT OUTER JOIN "users" "users_accompaniment_people_2" ON "users_accompaniment_people_2"."id" = "validated_bookings_accompaniments"."user_id" LEFT OUTER JOIN "accompaniments" "accompaniments_accompaniment_people_2" ON "accompaniments_accompaniment_people_2"."id" = "validated_bookings_accompaniments"."accompaniment_id" LEFT OUTER JOIN "non_urban_accompaniment_times" "non_urban_accompaniment_times_accompaniments" ON "non_urban_accompaniment_times_accompaniments"."accompaniment_id" = "accompaniments_accompaniment_people_2"."id" WHERE "accompaniment_people"."user_id" = $3 AND (accompaniments.date >= ('2017-07-20 15:41:36.296656')) AND "accompaniment_people"."status" IN (12, 1, 4, 14) AND "accompaniments"."status" IN (2, 4, 5) LIMIT 10 OFFSET 0  [["owner", "t"], ["status", 1], ["user_id", 2]]
  25. Redirected to http://www.example.com/search
  26. Completed 302 Found in 193ms (ActiveRecord: 12.3ms)
  27.    (0.2ms)  SAVEPOINT active_record_1
  28.   SQL (0.2ms)  DELETE FROM "sessions" WHERE "sessions"."id" = $1  [["id", 249]]
  29.    (0.1ms)  RELEASE SAVEPOINT active_record_1
  30. Started GET "/search" for 127.0.0.1 at 2017-07-20 17:41:36 +0200
  31. Processing by AccompanimentsController#search as HTML
  32.   SQL (0.4ms)  SELECT  "users"."id" AS t0_r0, "users"."email" AS t0_r1, "users"."encrypted_password" AS t0_r2, "users"."reset_password_token" AS t0_r3, "users"."reset_password_sent_at" AS t0_r4, "users"."remember_created_at" AS t0_r5, "users"."sign_in_count" AS t0_r6, "users"."current_sign_in_at" AS t0_r7, "users"."last_sign_in_at" AS t0_r8, "users"."current_sign_in_ip" AS t0_r9, "users"."last_sign_in_ip" AS t0_r10, "users"."created_at" AS t0_r11, "users"."updated_at" AS t0_r12, "users"."confirmation_token" AS t0_r13, "users"."confirmed_at" AS t0_r14, "users"."confirmation_sent_at" AS t0_r15, "users"."name" AS t0_r16, "users"."last_name" AS t0_r17, "users"."phone" AS t0_r18, "users"."birth_date" AS t0_r19, "users"."civility" AS t0_r20, "users"."attitude" AS t0_r21, "users"."hobbies" AS t0_r22, "users"."avatar_file_name" AS t0_r23, "users"."avatar_content_type" AS t0_r24, "users"."avatar_file_size" AS t0_r25, "users"."avatar_updated_at" AS t0_r26, "users"."provider" AS t0_r27, "users"."uid" AS t0_r28, "users"."activity" AS t0_r29, "users"."area_of_interests" AS t0_r30, "user_profiles"."id" AS t1_r0, "user_profiles"."user_id" AS t1_r1, "user_profiles"."discussion" AS t1_r2, "user_profiles"."balance" AS t1_r3, "user_profiles"."checkout" AS t1_r4, "user_profiles"."disability" AS t1_r5, "user_profiles"."locality_id" AS t1_r6, "user_profiles"."disability_support" AS t1_r7, "user_profiles"."iban_name" AS t1_r8, "user_profiles"."iban_number" AS t1_r9, "user_profiles"."bic" AS t1_r10 FROM "users" LEFT OUTER JOIN "user_profiles" ON "user_profiles"."user_id" = "users"."id" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
  33.    (0.4ms)        SELECT
  34.       (SELECT COUNT(*) FROM accompaniment_people WHERE status IN (7,14) AND user_id = 2)
  35.       AS activity,
  36.       (SELECT COUNT(DISTINCT sender_id) FROM messages WHERE read = False AND sender_id != 2
  37.       AND receiver_id = 2)  AS messages
  38. 
  39.   Place Load (0.3ms)  SELECT  "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1  [["id", 1]]
  40.   SQL (0.6ms)  SELECT "accompaniments"."id" AS t0_r0, "accompaniments"."a_type" AS t0_r1, "accompaniments"."frequency" AS t0_r2, "accompaniments"."date" AS t0_r3, "accompaniments"."status" AS t0_r4, "accompaniments"."created_at" AS t0_r5, "accompaniments"."updated_at" AS t0_r6, "accompaniments"."accompaniment_recurrence_id" AS t0_r7, "accompaniments"."transport_type" AS t0_r8, "accompaniments"."description" AS t0_r9, "accompaniments"."travel_type" AS t0_r10, "accompaniments"."starting_point_id" AS t0_r11, "accompaniments"."ending_point_id" AS t0_r12, "accompaniments"."free_travel_for_follower" AS t0_r13, "accompaniments"."luggage_port" AS t0_r14, "accompaniment_people"."id" AS t1_r0, "accompaniment_people"."accompaniment_id" AS t1_r1, "accompaniment_people"."ap_type" AS t1_r2, "accompaniment_people"."user_id" AS t1_r3, "accompaniment_people"."created_at" AS t1_r4, "accompaniment_people"."updated_at" AS t1_r5, "accompaniment_people"."owner" AS t1_r6, "accompaniment_people"."status" AS t1_r7, "accompaniment_people"."transport_type" AS t1_r8 FROM "accompaniments" INNER JOIN "accompaniment_people" ON "accompaniment_people"."accompaniment_id" = "accompaniments"."id" LEFT OUTER JOIN "accompaniment_people" "owners_accompaniments" ON "owners_accompaniments"."accompaniment_id" = "accompaniments"."id" AND "owners_accompaniments"."owner" = $1 WHERE "accompaniment_people"."user_id" = $2 AND (accompaniments.status IN (2,4,5) AND date < ('2017-07-20 15:41:36.357522'))  [["owner", "t"], ["user_id", 2]]
  41.   Rendered accompaniments/search.html.haml within layouts/application (22.2ms)
  42.   Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
  43.   Rendered shared_partials/_favicon.html.erb (1.5ms)
  44.   Rendered shared_partials/application/_header.html.haml (20.3ms)
  45. Completed 200 OK in 91ms (Views: 64.8ms | ActiveRecord: 2.5ms)
  46. Started GET "/credits/overview" for 127.0.0.1 at 2017-07-20 17:41:36 +0200
  47. Processing by UsersController#credits as HTML
  48.   Parameters: {"subpart"=>"overview"}
  49.   SQL (0.4ms)  SELECT  "users"."id" AS t0_r0, "users"."email" AS t0_r1, "users"."encrypted_password" AS t0_r2, "users"."reset_password_token" AS t0_r3, "users"."reset_password_sent_at" AS t0_r4, "users"."remember_created_at" AS t0_r5, "users"."sign_in_count" AS t0_r6, "users"."current_sign_in_at" AS t0_r7, "users"."last_sign_in_at" AS t0_r8, "users"."current_sign_in_ip" AS t0_r9, "users"."last_sign_in_ip" AS t0_r10, "users"."created_at" AS t0_r11, "users"."updated_at" AS t0_r12, "users"."confirmation_token" AS t0_r13, "users"."confirmed_at" AS t0_r14, "users"."confirmation_sent_at" AS t0_r15, "users"."name" AS t0_r16, "users"."last_name" AS t0_r17, "users"."phone" AS t0_r18, "users"."birth_date" AS t0_r19, "users"."civility" AS t0_r20, "users"."attitude" AS t0_r21, "users"."hobbies" AS t0_r22, "users"."avatar_file_name" AS t0_r23, "users"."avatar_content_type" AS t0_r24, "users"."avatar_file_size" AS t0_r25, "users"."avatar_updated_at" AS t0_r26, "users"."provider" AS t0_r27, "users"."uid" AS t0_r28, "users"."activity" AS t0_r29, "users"."area_of_interests" AS t0_r30, "user_profiles"."id" AS t1_r0, "user_profiles"."user_id" AS t1_r1, "user_profiles"."discussion" AS t1_r2, "user_profiles"."balance" AS t1_r3, "user_profiles"."checkout" AS t1_r4, "user_profiles"."disability" AS t1_r5, "user_profiles"."locality_id" AS t1_r6, "user_profiles"."disability_support" AS t1_r7, "user_profiles"."iban_name" AS t1_r8, "user_profiles"."iban_number" AS t1_r9, "user_profiles"."bic" AS t1_r10 FROM "users" LEFT OUTER JOIN "user_profiles" ON "user_profiles"."user_id" = "users"."id" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
  50.    (0.5ms)        SELECT
  51.       (SELECT COUNT(*) FROM accompaniment_people WHERE status IN (7,14) AND user_id = 2)
  52.       AS activity,
  53.       (SELECT COUNT(DISTINCT sender_id) FROM messages WHERE read = False AND sender_id != 2
  54.       AND receiver_id = 2)  AS messages
  55. 
  56.   Place Load (0.3ms)  SELECT  "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1  [["id", 1]]
  57.   SQL (0.4ms)  SELECT "accompaniments"."id" AS t0_r0, "accompaniments"."a_type" AS t0_r1, "accompaniments"."frequency" AS t0_r2, "accompaniments"."date" AS t0_r3, "accompaniments"."status" AS t0_r4, "accompaniments"."created_at" AS t0_r5, "accompaniments"."updated_at" AS t0_r6, "accompaniments"."accompaniment_recurrence_id" AS t0_r7, "accompaniments"."transport_type" AS t0_r8, "accompaniments"."description" AS t0_r9, "accompaniments"."travel_type" AS t0_r10, "accompaniments"."starting_point_id" AS t0_r11, "accompaniments"."ending_point_id" AS t0_r12, "accompaniments"."free_travel_for_follower" AS t0_r13, "accompaniments"."luggage_port" AS t0_r14, "accompaniment_people"."id" AS t1_r0, "accompaniment_people"."accompaniment_id" AS t1_r1, "accompaniment_people"."ap_type" AS t1_r2, "accompaniment_people"."user_id" AS t1_r3, "accompaniment_people"."created_at" AS t1_r4, "accompaniment_people"."updated_at" AS t1_r5, "accompaniment_people"."owner" AS t1_r6, "accompaniment_people"."status" AS t1_r7, "accompaniment_people"."transport_type" AS t1_r8 FROM "accompaniments" INNER JOIN "accompaniment_people" ON "accompaniment_people"."accompaniment_id" = "accompaniments"."id" LEFT OUTER JOIN "accompaniment_people" "owners_accompaniments" ON "owners_accompaniments"."accompaniment_id" = "accompaniments"."id" AND "owners_accompaniments"."owner" = $1 WHERE "accompaniment_people"."user_id" = $2 AND (accompaniments.status IN (2,4,5) AND date < ('2017-07-20 15:41:36.452945'))  [["owner", "t"], ["user_id", 2]]
  58.   Organization Load (0.4ms)  SELECT "organizations".* FROM "organizations"
  59.   CreditOffer Load (0.7ms)  SELECT "credit_offers".* FROM "credit_offers" WHERE (start_date_validity <= ('2017-07-20 15:41:36.460922') AND end_date_validity > ('2017-07-20 15:41:36.460922') AND start_date_visibility <= ('2017-07-20 15:41:36.460922') AND end_date_visibility > ('2017-07-20 15:41:36.460922') AND nb_offer > 0 AND special_offer = ('f') AND position >= 0)  ORDER BY "credit_offers"."position" ASC
  60.   CreditOffer Load (0.5ms)  SELECT "credit_offers".* FROM "credit_offers" INNER JOIN "discount_codes" ON "discount_codes"."credit_offer_id" = "credit_offers"."id" WHERE (credit_offers.start_date_validity <= ('2017-07-20 15:41:36.461714') AND credit_offers.end_date_validity > ('2017-07-20 15:41:36.461714') AND credit_offers.start_date_visibility <= ('2017-07-20 15:41:36.461714') AND credit_offers.end_date_visibility > ('2017-07-20 15:41:36.461714') AND credit_offers.nb_offer > 0) AND "discount_codes"."user_id" = $1 AND "discount_codes"."status" IN (0, 1)  ORDER BY "credit_offers"."position" ASC  [["user_id", 2]]
  61.   Rendered users/credits/_overview.html.haml (39.8ms)
  62.   Rendered users/credits.html.haml within layouts/application (48.0ms)
  63.   Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
  64.   Rendered shared_partials/_favicon.html.erb (1.4ms)
  65.   Rendered shared_partials/application/_header.html.haml (6.3ms)
  66. Completed 200 OK in 89ms (Views: 62.3ms | ActiveRecord: 6.9ms)
  67.   SQL (0.4ms)  SELECT  "users"."id" AS t0_r0, "users"."email" AS t0_r1, "users"."encrypted_password" AS t0_r2, "users"."reset_password_token" AS t0_r3, "users"."reset_password_sent_at" AS t0_r4, "users"."remember_created_at" AS t0_r5, "users"."sign_in_count" AS t0_r6, "users"."current_sign_in_at" AS t0_r7, "users"."last_sign_in_at" AS t0_r8, "users"."current_sign_in_ip" AS t0_r9, "users"."last_sign_in_ip" AS t0_r10, "users"."created_at" AS t0_r11, "users"."updated_at" AS t0_r12, "users"."confirmation_token" AS t0_r13, "users"."confirmed_at" AS t0_r14, "users"."confirmation_sent_at" AS t0_r15, "users"."name" AS t0_r16, "users"."last_name" AS t0_r17, "users"."phone" AS t0_r18, "users"."birth_date" AS t0_r19, "users"."civility" AS t0_r20, "users"."attitude" AS t0_r21, "users"."hobbies" AS t0_r22, "users"."avatar_file_name" AS t0_r23, "users"."avatar_content_type" AS t0_r24, "users"."avatar_file_size" AS t0_r25, "users"."avatar_updated_at" AS t0_r26, "users"."provider" AS t0_r27, "users"."uid" AS t0_r28, "users"."activity" AS t0_r29, "users"."area_of_interests" AS t0_r30, "user_profiles"."id" AS t1_r0, "user_profiles"."user_id" AS t1_r1, "user_profiles"."discussion" AS t1_r2, "user_profiles"."balance" AS t1_r3, "user_profiles"."checkout" AS t1_r4, "user_profiles"."disability" AS t1_r5, "user_profiles"."locality_id" AS t1_r6, "user_profiles"."disability_support" AS t1_r7, "user_profiles"."iban_name" AS t1_r8, "user_profiles"."iban_number" AS t1_r9, "user_profiles"."bic" AS t1_r10 FROM "users" LEFT OUTER JOIN "user_profiles" ON "user_profiles"."user_id" = "users"."id" WHERE "users"."id" = $1 LIMIT 1  [["id", 2]]
  68. Started POST "/payment/credit_offer_summary" for 127.0.0.1 at 2017-07-20 17:41:36 +0200
  69. Processing by PaymentController#credit_offer_summary as HTML
  70.   Parameters: {"utf8"=>"✓", "credit_offer_id"=>"1", "credit_offer_quantity"=>"1", "commit"=>"Acheter mes crédits"}
  71.   SQL (0.4ms)  SELECT  "users"."id" AS t0_r0, "users"."email" AS t0_r1, "users"."encrypted_password" AS t0_r2, "users"."reset_password_token" AS t0_r3, "users"."reset_password_sent_at" AS t0_r4, "users"."remember_created_at" AS t0_r5, "users"."sign_in_count" AS t0_r6, "users"."current_sign_in_at" AS t0_r7, "users"."last_sign_in_at" AS t0_r8, "users"."current_sign_in_ip" AS t0_r9, "users"."last_sign_in_ip" AS t0_r10, "users"."created_at" AS t0_r11, "users"."updated_at" AS t0_r12, "users"."confirmation_token" AS t0_r13, "users"."confirmed_at" AS t0_r14, "users"."confirmation_sent_at" AS t0_r15, "users"."name" AS t0_r16, "users"."last_name" AS t0_r17, "users"."phone" AS t0_r18, "users"."birth_date" AS t0_r19, "users"."civility" AS t0_r20, "users"."attitude" AS t0_r21, "users"."hobbies" AS t0_r22, "users"."avatar_file_name" AS t0_r23, "users"."avatar_content_type" AS t0_r24, "users"."avatar_file_size" AS t0_r25, "users"."avatar_updated_at" AS t0_r26, "users"."provider" AS t0_r27, "users"."uid" AS t0_r28, "users"."activity" AS t0_r29, "users"."area_of_interests" AS t0_r30, "user_profiles"."id" AS t1_r0, "user_profiles"."user_id" AS t1_r1, "user_profiles"."discussion" AS t1_r2, "user_profiles"."balance" AS t1_r3, "user_profiles"."checkout" AS t1_r4, "user_profiles"."disability" AS t1_r5, "user_profiles"."locality_id" AS t1_r6, "user_profiles"."disability_support" AS t1_r7, "user_profiles"."iban_name" AS t1_r8, "user_profiles"."iban_number" AS t1_r9, "user_profiles"."bic" AS t1_r10 FROM "users" LEFT OUTER JOIN "user_profiles" ON "user_profiles"."user_id" = "users"."id" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
  72.    (0.4ms)        SELECT
  73.       (SELECT COUNT(*) FROM accompaniment_people WHERE status IN (7,14) AND user_id = 2)
  74.       AS activity,
  75.       (SELECT COUNT(DISTINCT sender_id) FROM messages WHERE read = False AND sender_id != 2
  76.       AND receiver_id = 2)  AS messages
  77. 
  78.   Place Load (0.2ms)  SELECT  "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1  [["id", 1]]
  79.   SQL (0.4ms)  SELECT "accompaniments"."id" AS t0_r0, "accompaniments"."a_type" AS t0_r1, "accompaniments"."frequency" AS t0_r2, "accompaniments"."date" AS t0_r3, "accompaniments"."status" AS t0_r4, "accompaniments"."created_at" AS t0_r5, "accompaniments"."updated_at" AS t0_r6, "accompaniments"."accompaniment_recurrence_id" AS t0_r7, "accompaniments"."transport_type" AS t0_r8, "accompaniments"."description" AS t0_r9, "accompaniments"."travel_type" AS t0_r10, "accompaniments"."starting_point_id" AS t0_r11, "accompaniments"."ending_point_id" AS t0_r12, "accompaniments"."free_travel_for_follower" AS t0_r13, "accompaniments"."luggage_port" AS t0_r14, "accompaniment_people"."id" AS t1_r0, "accompaniment_people"."accompaniment_id" AS t1_r1, "accompaniment_people"."ap_type" AS t1_r2, "accompaniment_people"."user_id" AS t1_r3, "accompaniment_people"."created_at" AS t1_r4, "accompaniment_people"."updated_at" AS t1_r5, "accompaniment_people"."owner" AS t1_r6, "accompaniment_people"."status" AS t1_r7, "accompaniment_people"."transport_type" AS t1_r8 FROM "accompaniments" INNER JOIN "accompaniment_people" ON "accompaniment_people"."accompaniment_id" = "accompaniments"."id" LEFT OUTER JOIN "accompaniment_people" "owners_accompaniments" ON "owners_accompaniments"."accompaniment_id" = "accompaniments"."id" AND "owners_accompaniments"."owner" = $1 WHERE "accompaniment_people"."user_id" = $2 AND (accompaniments.status IN (2,4,5) AND date < ('2017-07-20 15:41:36.563480'))  [["owner", "t"], ["user_id", 2]]
  80.   CreditOffer Load (0.3ms)  SELECT  "credit_offers".* FROM "credit_offers" WHERE "credit_offers"."id" = $1 LIMIT 1  [["id", 1]]
  81.   Rendered shared_partials/_payment_form.html.haml (5.8ms)
  82.   Rendered payment/credit_offer_summary.html.haml within layouts/application (7.6ms)
  83.   Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
  84.   Rendered shared_partials/_favicon.html.erb (1.1ms)
  85.   Rendered shared_partials/application/_header.html.haml (5.3ms)
  86. Completed 200 OK in 59ms (Views: 21.9ms | ActiveRecord: 2.0ms)
  87. Started POST "/payment" for 127.0.0.1 at 2017-07-20 17:41:36 +0200
  88. Processing by PaymentController#create as HTML
  89.   Parameters: {"payment#create"=>nil}
  90. Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
  91. Started POST "/payment" for 127.0.0.1 at 2017-07-20 17:41:36 +0200
  92. Processing by PaymentController#create as HTML
  93.   Parameters: {"utf8"=>"✓", "card_owner"=>"Marcelle Perrot", "number"=>"4242 4242 4242 4242", "exp_month"=>"10", "exp_year"=>"20", "cvc"=>"123", "form_action"=>"buy_credit_offer", "credit_offer_id"=>"1", "credit_offer_quantity"=>"1", "commit"=>"Valider"}
  94.   SQL (0.6ms)  SELECT  "users"."id" AS t0_r0, "users"."email" AS t0_r1, "users"."encrypted_password" AS t0_r2, "users"."reset_password_token" AS t0_r3, "users"."reset_password_sent_at" AS t0_r4, "users"."remember_created_at" AS t0_r5, "users"."sign_in_count" AS t0_r6, "users"."current_sign_in_at" AS t0_r7, "users"."last_sign_in_at" AS t0_r8, "users"."current_sign_in_ip" AS t0_r9, "users"."last_sign_in_ip" AS t0_r10, "users"."created_at" AS t0_r11, "users"."updated_at" AS t0_r12, "users"."confirmation_token" AS t0_r13, "users"."confirmed_at" AS t0_r14, "users"."confirmation_sent_at" AS t0_r15, "users"."name" AS t0_r16, "users"."last_name" AS t0_r17, "users"."phone" AS t0_r18, "users"."birth_date" AS t0_r19, "users"."civility" AS t0_r20, "users"."attitude" AS t0_r21, "users"."hobbies" AS t0_r22, "users"."avatar_file_name" AS t0_r23, "users"."avatar_content_type" AS t0_r24, "users"."avatar_file_size" AS t0_r25, "users"."avatar_updated_at" AS t0_r26, "users"."provider" AS t0_r27, "users"."uid" AS t0_r28, "users"."activity" AS t0_r29, "users"."area_of_interests" AS t0_r30, "user_profiles"."id" AS t1_r0, "user_profiles"."user_id" AS t1_r1, "user_profiles"."discussion" AS t1_r2, "user_profiles"."balance" AS t1_r3, "user_profiles"."checkout" AS t1_r4, "user_profiles"."disability" AS t1_r5, "user_profiles"."locality_id" AS t1_r6, "user_profiles"."disability_support" AS t1_r7, "user_profiles"."iban_name" AS t1_r8, "user_profiles"."iban_number" AS t1_r9, "user_profiles"."bic" AS t1_r10 FROM "users" LEFT OUTER JOIN "user_profiles" ON "user_profiles"."user_id" = "users"."id" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
  95.    (0.5ms)        SELECT
  96.       (SELECT COUNT(*) FROM accompaniment_people WHERE status IN (7,14) AND user_id = 2)
  97.       AS activity,
  98.       (SELECT COUNT(DISTINCT sender_id) FROM messages WHERE read = False AND sender_id != 2
  99.       AND receiver_id = 2)  AS messages
  100.  
  101.   Place Load (0.4ms)  SELECT  "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1  [["id", 1]]
  102.   SQL (0.5ms)  SELECT "accompaniments"."id" AS t0_r0, "accompaniments"."a_type" AS t0_r1, "accompaniments"."frequency" AS t0_r2, "accompaniments"."date" AS t0_r3, "accompaniments"."status" AS t0_r4, "accompaniments"."created_at" AS t0_r5, "accompaniments"."updated_at" AS t0_r6, "accompaniments"."accompaniment_recurrence_id" AS t0_r7, "accompaniments"."transport_type" AS t0_r8, "accompaniments"."description" AS t0_r9, "accompaniments"."travel_type" AS t0_r10, "accompaniments"."starting_point_id" AS t0_r11, "accompaniments"."ending_point_id" AS t0_r12, "accompaniments"."free_travel_for_follower" AS t0_r13, "accompaniments"."luggage_port" AS t0_r14, "accompaniment_people"."id" AS t1_r0, "accompaniment_people"."accompaniment_id" AS t1_r1, "accompaniment_people"."ap_type" AS t1_r2, "accompaniment_people"."user_id" AS t1_r3, "accompaniment_people"."created_at" AS t1_r4, "accompaniment_people"."updated_at" AS t1_r5, "accompaniment_people"."owner" AS t1_r6, "accompaniment_people"."status" AS t1_r7, "accompaniment_people"."transport_type" AS t1_r8 FROM "accompaniments" INNER JOIN "accompaniment_people" ON "accompaniment_people"."accompaniment_id" = "accompaniments"."id" LEFT OUTER JOIN "accompaniment_people" "owners_accompaniments" ON "owners_accompaniments"."accompaniment_id" = "accompaniments"."id" AND "owners_accompaniments"."owner" = $1 WHERE "accompaniment_people"."user_id" = $2 AND (accompaniments.status IN (2,4,5) AND date < ('2017-07-20 15:41:36.643217'))  [["owner", "t"], ["user_id", 2]]
  103.   CreditOffer Load (0.4ms)  SELECT  "credit_offers".* FROM "credit_offers" WHERE "credit_offers"."id" = $1 LIMIT 1  [["id", 1]]
  104.    (0.2ms)  SAVEPOINT active_record_1
  105.   SQL (0.5ms)  INSERT INTO "user_credit_purchase_transactions" ("user_id", "payment_type", "credit_offer_id", "total_amount", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["user_id", 2], ["payment_type", 0], ["credit_offer_id", 1], ["total_amount", 10.0], ["created_at", "2017-07-20 15:41:36.658047"], ["updated_at", "2017-07-20 15:41:36.658047"]]
  106.    (0.2ms)  RELEASE SAVEPOINT active_record_1
  107.    (0.2ms)  SAVEPOINT active_record_1
  108.   SQL (0.4ms)  UPDATE "user_credit_purchase_transactions" SET "transaction_string_id" = $1, "status" = $2, "updated_at" = $3 WHERE "user_credit_purchase_transactions"."id" = $4  [["transaction_string_id", "test_ch_3"], ["status", 1], ["updated_at", "2017-07-20 15:41:36.662485"], ["id", 53]]
  109.    (0.1ms)  RELEASE SAVEPOINT active_record_1
  110.    (0.1ms)  SAVEPOINT active_record_1
  111.   SQL (0.3ms)  UPDATE "user_profiles" SET "balance" = $1 WHERE "user_profiles"."id" = $2  [["balance", "110.0"], ["id", 2]]
  112.    (0.1ms)  RELEASE SAVEPOINT active_record_1
  113. Redirected to http://www.example.com/payment/summary/53
  114. Completed 302 Found in 31ms (ActiveRecord: 6.3ms)
  115. Started GET "/payment/summary/53" for 127.0.0.1 at 2017-07-20 17:41:36 +0200
  116. Processing by PaymentController#summary as HTML
  117.   Parameters: {"transaction_id"=>"53"}
  118.   SQL (0.6ms)  SELECT  "users"."id" AS t0_r0, "users"."email" AS t0_r1, "users"."encrypted_password" AS t0_r2, "users"."reset_password_token" AS t0_r3, "users"."reset_password_sent_at" AS t0_r4, "users"."remember_created_at" AS t0_r5, "users"."sign_in_count" AS t0_r6, "users"."current_sign_in_at" AS t0_r7, "users"."last_sign_in_at" AS t0_r8, "users"."current_sign_in_ip" AS t0_r9, "users"."last_sign_in_ip" AS t0_r10, "users"."created_at" AS t0_r11, "users"."updated_at" AS t0_r12, "users"."confirmation_token" AS t0_r13, "users"."confirmed_at" AS t0_r14, "users"."confirmation_sent_at" AS t0_r15, "users"."name" AS t0_r16, "users"."last_name" AS t0_r17, "users"."phone" AS t0_r18, "users"."birth_date" AS t0_r19, "users"."civility" AS t0_r20, "users"."attitude" AS t0_r21, "users"."hobbies" AS t0_r22, "users"."avatar_file_name" AS t0_r23, "users"."avatar_content_type" AS t0_r24, "users"."avatar_file_size" AS t0_r25, "users"."avatar_updated_at" AS t0_r26, "users"."provider" AS t0_r27, "users"."uid" AS t0_r28, "users"."activity" AS t0_r29, "users"."area_of_interests" AS t0_r30, "user_profiles"."id" AS t1_r0, "user_profiles"."user_id" AS t1_r1, "user_profiles"."discussion" AS t1_r2, "user_profiles"."balance" AS t1_r3, "user_profiles"."checkout" AS t1_r4, "user_profiles"."disability" AS t1_r5, "user_profiles"."locality_id" AS t1_r6, "user_profiles"."disability_support" AS t1_r7, "user_profiles"."iban_name" AS t1_r8, "user_profiles"."iban_number" AS t1_r9, "user_profiles"."bic" AS t1_r10 FROM "users" LEFT OUTER JOIN "user_profiles" ON "user_profiles"."user_id" = "users"."id" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 2]]
  119.    (0.6ms)        SELECT
  120.       (SELECT COUNT(*) FROM accompaniment_people WHERE status IN (7,14) AND user_id = 2)
  121.       AS activity,
  122.       (SELECT COUNT(DISTINCT sender_id) FROM messages WHERE read = False AND sender_id != 2
  123.       AND receiver_id = 2)  AS messages
  124.  
  125.   Place Load (0.4ms)  SELECT  "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1  [["id", 1]]
  126.   SQL (0.6ms)  SELECT "accompaniments"."id" AS t0_r0, "accompaniments"."a_type" AS t0_r1, "accompaniments"."frequency" AS t0_r2, "accompaniments"."date" AS t0_r3, "accompaniments"."status" AS t0_r4, "accompaniments"."created_at" AS t0_r5, "accompaniments"."updated_at" AS t0_r6, "accompaniments"."accompaniment_recurrence_id" AS t0_r7, "accompaniments"."transport_type" AS t0_r8, "accompaniments"."description" AS t0_r9, "accompaniments"."travel_type" AS t0_r10, "accompaniments"."starting_point_id" AS t0_r11, "accompaniments"."ending_point_id" AS t0_r12, "accompaniments"."free_travel_for_follower" AS t0_r13, "accompaniments"."luggage_port" AS t0_r14, "accompaniment_people"."id" AS t1_r0, "accompaniment_people"."accompaniment_id" AS t1_r1, "accompaniment_people"."ap_type" AS t1_r2, "accompaniment_people"."user_id" AS t1_r3, "accompaniment_people"."created_at" AS t1_r4, "accompaniment_people"."updated_at" AS t1_r5, "accompaniment_people"."owner" AS t1_r6, "accompaniment_people"."status" AS t1_r7, "accompaniment_people"."transport_type" AS t1_r8 FROM "accompaniments" INNER JOIN "accompaniment_people" ON "accompaniment_people"."accompaniment_id" = "accompaniments"."id" LEFT OUTER JOIN "accompaniment_people" "owners_accompaniments" ON "owners_accompaniments"."accompaniment_id" = "accompaniments"."id" AND "owners_accompaniments"."owner" = $1 WHERE "accompaniment_people"."user_id" = $2 AND (accompaniments.status IN (2,4,5) AND date < ('2017-07-20 15:41:36.679294'))  [["owner", "t"], ["user_id", 2]]
  127.   UserCreditPurchaseTransaction Load (0.3ms)  SELECT  "user_credit_purchase_transactions".* FROM "user_credit_purchase_transactions" WHERE "user_credit_purchase_transactions"."id" = $1 LIMIT 1  [["id", 53]]
  128.   Rendered payment/summary.html.haml within layouts/application (3.0ms)
  129.   Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
  130.   Rendered shared_partials/_favicon.html.erb (2.0ms)
  131.   Rendered shared_partials/application/_header.html.haml (10.3ms)
  132. Completed 200 OK in 37ms (Views: 24.8ms | ActiveRecord: 2.9ms)
  133.    (0.2ms)  ROLLBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement