Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Started PUT "/bookings/23/exec_reserve.json" for 127.0.0.1 at Thu Jun 23 10:20:12 +0600 2011
- Processing by BookingsController#exec_reserve as JSON
- Parameters: {"commit"=>"Save", "booking"=>{"start_date"=>"09/18/2014", "amount"=>"56", "stop_date"=>"08/30/2023", "description"=>""}, "id"=>"23"}
- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."fb_user_id" = '1561794357' LIMIT 1
- SQL (0.3ms) BEGIN
- SQL (0.7ms) INSERT INTO "delayed_jobs" ("attempts", "handler", "failed_at", "locked_by", "last_error", "priority", "updated_at", "created_at", "run_at", "locked_at") VALUES (0, '--- !ruby/struct:Delayed::PerformableMethod
- object: !ruby/ActiveRecord:User
- attributes:
- session_expires_at:
- authorize_signature: 207114539328990|96fd4c3d9db2955c037a85ab.1-1561794357|KHEQUsWSze1qidBIfEzRW1htSVE
- company: ""
- referral_id:
- app_api_key:
- created_at: 2011-05-08 08:53:24.399349
- sms_starting_at: "01:00:00"
- valid_country: f
- session_key: 96fd4c3d9db2955c037a85ab.1-1561794357
- linked_account_ids:
- redeemed_rewards:
- authorized_at:
- fb_user_id: "1561794357"
- updated_at: 2011-06-23 04:20:06.179893
- twitter_name:
- fake_fb_uid: "1"
- fb_updated_at:
- fb_friend_ids:
- fb_location: Perm, Russia
- fb_location_update_at: 2011-05-08 08:53:27.178155
- fb_lng: "56.2352792"
- subscription_plan: advanced
- admin: t
- yahoo_id: ""
- notification_channels: |
- ---
- - ""
- - email
- id: "1"
- update_fb_wall: f
- referral_token: 9c81317f097b7de4ac21e406a88a61b93c45c2b7
- fake_friend_ids:
- has_billing_info: t
- twitter_token:
- last_poll_time: 2011-06-23 04:20:06.17804
- accepted_terms_of_use: t
- last_name: ""
- phone: ""
- sms_ending_at: "15:00:00"
- referral_updated_at:
- fb_first_name: Fodoj
- vrbo_password: qweqwe
- twitter_secret:
- middle_initial:
- use_fb_profile: t
- fb_lat: "57.9971695"
- fb_friends_update_at:
- time_zone:
- update_twitter: f
- email: fodojyko@gmail.com
- vrbo_login: fodojyko@gmail.com
- first_name: ""
- fb_last_name: Yodov
- method_name: :get_fb_friend_ids!
- args: []
- ', NULL, NULL, NULL, 0, '2011-06-23 04:20:12.500753', '2011-06-23 04:20:12.500753', '2011-06-23 04:20:12.500554', NULL) RETURNING "id"
- SQL (0.9ms) COMMIT
- SQL (0.3ms) BEGIN
- SQL (0.8ms) INSERT INTO "delayed_jobs" ("attempts", "handler", "failed_at", "locked_by", "last_error", "priority", "updated_at", "created_at", "run_at", "locked_at") VALUES (0, '--- !ruby/struct:Delayed::PerformableMethod
- object: !ruby/ActiveRecord:User
- attributes:
- session_expires_at:
- authorize_signature: 207114539328990|96fd4c3d9db2955c037a85ab.1-1561794357|KHEQUsWSze1qidBIfEzRW1htSVE
- company: ""
- referral_id:
- app_api_key:
- created_at: 2011-05-08 08:53:24.399349
- sms_starting_at: "01:00:00"
- valid_country: f
- session_key: 96fd4c3d9db2955c037a85ab.1-1561794357
- linked_account_ids:
- redeemed_rewards:
- authorized_at:
- fb_user_id: "1561794357"
- updated_at: 2011-06-23 04:20:06.179893
- twitter_name:
- fake_fb_uid: "1"
- fb_updated_at:
- fb_friend_ids:
- fb_location: Perm, Russia
- fb_location_update_at: 2011-05-08 08:53:27.178155
- fb_lng: "56.2352792"
- subscription_plan: advanced
- admin: t
- yahoo_id: ""
- notification_channels: |
- ---
- - ""
- - email
- id: "1"
- update_fb_wall: f
- referral_token: 9c81317f097b7de4ac21e406a88a61b93c45c2b7
- fake_friend_ids:
- has_billing_info: t
- twitter_token:
- last_poll_time: 2011-06-23 04:20:06.17804
- accepted_terms_of_use: t
- last_name: ""
- phone: ""
- sms_ending_at: "15:00:00"
- referral_updated_at:
- fb_first_name: Fodoj
- vrbo_password: qweqwe
- twitter_secret:
- middle_initial:
- use_fb_profile: t
- fb_lat: "57.9971695"
- fb_friends_update_at:
- time_zone:
- update_twitter: f
- email: fodojyko@gmail.com
- vrbo_login: fodojyko@gmail.com
- first_name: ""
- fb_last_name: Yodov
- method_name: :get_fb_friend_ids!
- args: []
- ', NULL, NULL, NULL, 0, '2011-06-23 04:20:12.522231', '2011-06-23 04:20:12.522231', '2011-06-23 04:20:12.522049', NULL) RETURNING "id"
- SQL (16.7ms) COMMIT
- Booking Load (1.1ms) SELECT "bookings".* FROM "bookings" INNER JOIN "rental_units" ON "bookings".rental_unit_id = "rental_units".id WHERE "bookings"."id" = 23 AND (("rental_units".user_id = 1)) LIMIT 1
- RentalUnit Load (3.6ms) SELECT "rental_units".* FROM "rental_units" WHERE "rental_units"."id" = 9 LIMIT 1
- Booking Load (0.8ms) SELECT "bookings"."id" FROM "bookings" WHERE "bookings"."status" IN ('reserved', 'confirmed') AND ("bookings".rental_unit_id = 9) AND ( stop_date > '2014-09-18' AND start_date < '2023-08-30' AND id != 23 ) LIMIT 1
- Reservation Load (2.4ms) SELECT "reservations"."id" FROM "reservations" WHERE "reservations"."status" IN ('RESERVE', 'UNAVAILABLE') AND ("reservations".rental_unit_id = 9) AND ( '2014-09-18 00:00:00' < end_at AND '2023-08-30 00:00:00' > start_at AND booking_id IS NULL) LIMIT 1
- Lot Load (0.8ms) SELECT "lots"."id" FROM "lots" WHERE "lots"."status" IN ('active', 'waiting_on_charge', 'waiting_on_accepting') AND ("lots".property_id = 9) AND ( depart_on > '2014-09-18' AND arrive_on < '2023-08-30' ) LIMIT 1
- Deal Load (0.6ms) SELECT "deals"."id" FROM "deals" WHERE "deals"."status" = 'active' AND ("deals".rental_unit_id = 9) AND ( end_on > '2014-09-18' AND start_on < '2023-08-30' ) LIMIT 1
- Reservation Load (0.8ms) SELECT "reservations".* FROM "reservations" WHERE ("reservations".booking_id = 23) LIMIT 1
- SQL (0.3ms) BEGIN
- Reservation Load (0.7ms) SELECT "reservations"."id" FROM "reservations" WHERE "reservations"."status" IN ('RESERVE', 'UNAVAILABLE') AND ("reservations".rental_unit_id = 9) AND (id != NULL) AND ( '2014-09-18 07:00:00.000000' < end_at AND '2023-08-30 07:00:00.000000' > start_at) LIMIT 1
- SQL (17.2ms) INSERT INTO "reservations" ("first_name", "last_name", "email", "status", "address1", "inquiry_source", "fax", "notes", "updated_at", "address2", "city", "remote_id", "end_at", "number_of_children", "zip", "phone", "rental_unit_id", "mobile", "start_at", "country", "booking_id", "created_at", "state", "source", "number_of_adults") VALUES (NULL, NULL, NULL, 'RESERVE', NULL, NULL, NULL, '', '2011-06-23 04:20:12.620588', NULL, NULL, NULL, '2023-08-30 07:00:00.000000', 0, NULL, NULL, 9, NULL, '2014-09-18 07:00:00.000000', NULL, 23, '2011-06-23 04:20:12.620588', NULL, NULL, 0) RETURNING "id"
- SQL (0.7ms) COMMIT
- User Load (1.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
- SQL (0.4ms) BEGIN
- Booking Load (1.0ms) SELECT "bookings"."id" FROM "bookings" WHERE "bookings"."status" IN ('reserved', 'confirmed') AND ("bookings".rental_unit_id = 9) AND ( stop_date > '2014-09-18' AND start_date < '2023-08-30' AND id != 23 ) LIMIT 1
- Reservation Load (1.0ms) SELECT "reservations"."id" FROM "reservations" WHERE "reservations"."status" IN ('RESERVE', 'UNAVAILABLE') AND ("reservations".rental_unit_id = 9) AND ( '2014-09-18 00:00:00' < end_at AND '2023-08-30 00:00:00' > start_at AND booking_id IS NULL) LIMIT 1
- Lot Load (0.9ms) SELECT "lots"."id" FROM "lots" WHERE "lots"."status" IN ('active', 'waiting_on_charge', 'waiting_on_accepting') AND ("lots".property_id = 9) AND ( depart_on > '2014-09-18' AND arrive_on < '2023-08-30' ) LIMIT 1
- Deal Load (0.9ms) SELECT "deals"."id" FROM "deals" WHERE "deals"."status" = 'active' AND ("deals".rental_unit_id = 9) AND ( end_on > '2014-09-18' AND start_on < '2023-08-30' ) LIMIT 1
- AREL (1.2ms) UPDATE "bookings" SET "stop_date" = '2023-08-30', "amount" = 56.0, "start_date" = '2014-09-18', "description" = '', "updated_at" = '2011-06-23 04:20:12.684887', "status" = 'reserved' WHERE "bookings"."id" = 23
- Deal Load (2.2ms) SELECT "deals".* FROM "deals" INNER JOIN "rental_units" ON "rental_units"."id" = "deals"."rental_unit_id" WHERE "deals"."status" = 'active' AND "rental_units"."deleted_at" IS NULL AND "rental_units"."verified" = 't' AND "rental_units"."owner_subscribed" = 't' AND ("deals".rental_unit_id = 9) AND (start_on < '2023-08-30' AND end_on > '2014-09-18' )
- SQL (0.9ms) COMMIT
- Completed 406 Not Acceptable in 254ms
- Started GET "/bookings.json" for 127.0.0.1 at Thu Jun 23 10:20:12 +0600 2011
- Processing by BookingsController#index as JSON
- User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."fb_user_id" = '1561794357' LIMIT 1
- SQL (0.3ms) BEGIN
- SQL (0.8ms) INSERT INTO "delayed_jobs" ("attempts", "handler", "failed_at", "locked_by", "last_error", "priority", "updated_at", "created_at", "run_at", "locked_at") VALUES (0, '--- !ruby/struct:Delayed::PerformableMethod
- object: !ruby/ActiveRecord:User
- attributes:
- session_expires_at:
- authorize_signature: 207114539328990|96fd4c3d9db2955c037a85ab.1-1561794357|KHEQUsWSze1qidBIfEzRW1htSVE
- company: ""
- referral_id:
- app_api_key:
- created_at: 2011-05-08 08:53:24.399349
- sms_starting_at: "01:00:00"
- valid_country: f
- session_key: 96fd4c3d9db2955c037a85ab.1-1561794357
- linked_account_ids:
- redeemed_rewards:
- authorized_at:
- fb_user_id: "1561794357"
- updated_at: 2011-06-23 04:20:06.179893
- twitter_name:
- fake_fb_uid: "1"
- fb_updated_at:
- fb_friend_ids:
- fb_location: Perm, Russia
- fb_location_update_at: 2011-05-08 08:53:27.178155
- fb_lng: "56.2352792"
- subscription_plan: advanced
- admin: t
- yahoo_id: ""
- notification_channels: |
- ---
- - ""
- - email
- id: "1"
- update_fb_wall: f
- referral_token: 9c81317f097b7de4ac21e406a88a61b93c45c2b7
- fake_friend_ids:
- has_billing_info: t
- twitter_token:
- last_poll_time: 2011-06-23 04:20:06.17804
- accepted_terms_of_use: t
- last_name: ""
- phone: ""
- sms_ending_at: "15:00:00"
- referral_updated_at:
- fb_first_name: Fodoj
- vrbo_password: qweqwe
- twitter_secret:
- middle_initial:
- use_fb_profile: t
- fb_lat: "57.9971695"
- fb_friends_update_at:
- time_zone:
- update_twitter: f
- email: fodojyko@gmail.com
- vrbo_login: fodojyko@gmail.com
- first_name: ""
- fb_last_name: Yodov
- method_name: :get_fb_friend_ids!
- args: []
- ', NULL, NULL, NULL, 0, '2011-06-23 04:20:12.794742', '2011-06-23 04:20:12.794742', '2011-06-23 04:20:12.794546', NULL) RETURNING "id"
- SQL (0.9ms) COMMIT
- SQL (0.3ms) BEGIN
- SQL (0.9ms) INSERT INTO "delayed_jobs" ("attempts", "handler", "failed_at", "locked_by", "last_error", "priority", "updated_at", "created_at", "run_at", "locked_at") VALUES (0, '--- !ruby/struct:Delayed::PerformableMethod
- object: !ruby/ActiveRecord:User
- attributes:
- session_expires_at:
- authorize_signature: 207114539328990|96fd4c3d9db2955c037a85ab.1-1561794357|KHEQUsWSze1qidBIfEzRW1htSVE
- company: ""
- referral_id:
- app_api_key:
- created_at: 2011-05-08 08:53:24.399349
- sms_starting_at: "01:00:00"
- valid_country: f
- session_key: 96fd4c3d9db2955c037a85ab.1-1561794357
- linked_account_ids:
- redeemed_rewards:
- authorized_at:
- fb_user_id: "1561794357"
- updated_at: 2011-06-23 04:20:06.179893
- twitter_name:
- fake_fb_uid: "1"
- fb_updated_at:
- fb_friend_ids:
- fb_location: Perm, Russia
- fb_location_update_at: 2011-05-08 08:53:27.178155
- fb_lng: "56.2352792"
- subscription_plan: advanced
- admin: t
- yahoo_id: ""
- notification_channels: |
- ---
- - ""
- - email
- id: "1"
- update_fb_wall: f
- referral_token: 9c81317f097b7de4ac21e406a88a61b93c45c2b7
- fake_friend_ids:
- has_billing_info: t
- twitter_token:
- last_poll_time: 2011-06-23 04:20:06.17804
- accepted_terms_of_use: t
- last_name: ""
- phone: ""
- sms_ending_at: "15:00:00"
- referral_updated_at:
- fb_first_name: Fodoj
- vrbo_password: qweqwe
- twitter_secret:
- middle_initial:
- use_fb_profile: t
- fb_lat: "57.9971695"
- fb_friends_update_at:
- time_zone:
- update_twitter: f
- email: fodojyko@gmail.com
- vrbo_login: fodojyko@gmail.com
- first_name: ""
- fb_last_name: Yodov
- method_name: :get_fb_friend_ids!
- args: []
- ', NULL, NULL, NULL, 0, '2011-06-23 04:20:12.808519', '2011-06-23 04:20:12.808519', '2011-06-23 04:20:12.808348', NULL) RETURNING "id"
- SQL (20.2ms) COMMIT
- Booking Load (1.2ms) SELECT "bookings".* FROM "bookings" INNER JOIN "rental_units" ON "bookings".rental_unit_id = "rental_units".id WHERE "bookings"."status" = 'reserved' AND (("rental_units".user_id = 1)) ORDER BY start_date
- RentalUnit Load (0.9ms) SELECT "rental_units".* FROM "rental_units" WHERE ("rental_units"."id" = 9)
- User Load (0.8ms) SELECT "users".* FROM "users" WHERE ("users"."id" = 1)
- Reservation Load (2.2ms) SELECT "reservations".* FROM "reservations" WHERE ("reservations".booking_id IN (25,24,23))
- Completed 200 OK in 86ms (Views: 22.7ms | ActiveRecord: 31.8ms | Sphinx: 0.0ms)
Add Comment
Please, Sign In to add comment