Skip to content

Instantly share code, notes, and snippets.

@petRUShka
Created February 3, 2011 22:59
Show Gist options
  • Save petRUShka/810405 to your computer and use it in GitHub Desktop.
Save petRUShka/810405 to your computer and use it in GitHub Desktop.
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
User Columns (0.8ms) SHOW FIELDS FROM `users`
SQL (0.1ms) BEGIN
User Load (0.3ms) SELECT * FROM `users`
SQL (0.2ms) SAVEPOINT active_record_1
User Load (0.3ms) SELECT `users`.id FROM `users` WHERE (LOWER(`users`.`email`) = BINARY '[email protected]') LIMIT 1
User Load (0.2ms) SELECT `users`.id FROM `users` WHERE (LOWER(`users`.`login`) = BINARY 'user') LIMIT 1
User Load (0.2ms) SELECT `users`.id FROM `users` WHERE (`users`.`persistence_token` = BINARY 'ecc763fb6656c60eb3415e6aa786425b0d93d0e8762935377801fd504823f5bef9f6361a3f70610739a2ec30730c7fa393c8918b83a6efd2ae9271f7fe674b37') LIMIT 1
User Create (0.3ms) INSERT INTO `users` (`name`, `last_request_at`, `created_at`, `crypted_password`, `updated_at`, `perishable_token`, `role`, `current_login_ip`, `current_company_id`, `id`, `password_salt`, `current_login_at`, `wanted_company_id`, `persistence_token`, `login_count`, `phone`, `last_login_ip`, `login`, `last_login_at`, `email`, `active`) VALUES('Aric Smith', NULL, '2011-02-03 22:54:49', '34b9130e29b9e32f707398dfdee8bb5d90dc30409cf3b59f65a0b8a42ec16079beb27f5ffe515c4d61201135182ec1a5afa20f31864010cfdae483030804cc71', '2011-02-03 22:54:49', 'eWoJxU7Q8MQABL39agRF', NULL, NULL, NULL, 1, 'na9MHgzdBiL8tFmsGwnI', NULL, NULL, 'ecc763fb6656c60eb3415e6aa786425b0d93d0e8762935377801fd504823f5bef9f6361a3f70610739a2ec30730c7fa393c8918b83a6efd2ae9271f7fe674b37', NULL, NULL, NULL, 'user', NULL, '[email protected]', 1)
User Update (0.2ms) UPDATE `users` SET `updated_at` = '2011-02-03 22:54:49', `login` = 'user', `crypted_password` = '34b9130e29b9e32f707398dfdee8bb5d90dc30409cf3b59f65a0b8a42ec16079beb27f5ffe515c4d61201135182ec1a5afa20f31864010cfdae483030804cc71', `name` = 'Aric Smith', `perishable_token` = 'QWA4qtheEuCn2vwUzLF6', `created_at` = '2011-02-03 22:54:49', `active` = 1, `email` = '[email protected]', `password_salt` = 'na9MHgzdBiL8tFmsGwnI', `persistence_token` = 'ecc763fb6656c60eb3415e6aa786425b0d93d0e8762935377801fd504823f5bef9f6361a3f70610739a2ec30730c7fa393c8918b83a6efd2ae9271f7fe674b37' WHERE `id` = 1
Sent mail to [email protected]
SQL (0.1ms) RELEASE SAVEPOINT active_record_1
User Load (13.9ms) SELECT * FROM `users` WHERE (`users`.`id` = 1)
Company Columns (0.9ms) SHOW FIELDS FROM `companies`
SQL (0.1ms) SAVEPOINT active_record_1
Company Create (0.3ms) INSERT INTO `companies` (`name`, `women`, `created_at`, `first_charge_date`, `confirmed`, `discount_percentage`, `updated_at`, `able_to_change_fares`, `url`, `day_end`, `bad_design`, `suburb`, `information`, `user_id`, `phone`, `aero_extra`, `outcity`, `day_begin`, `aero_wait_time`, `holiday_as_night`, `percentage_rate`, `mcad_time`, `hidden`, `email`, `operator_token`) VALUES('Eliseo Kautzer', NULL, '2011-02-03 22:54:49', NULL, 1, 0, '2011-02-03 22:54:49', NULL, 'http://kundesmith.co.uk', NULL, 1, NULL, NULL, 1, '(895)001-7692', NULL, NULL, NULL, NULL, NULL, 33.0, NULL, 0, '[email protected]', 'e583fc7dea416f6e')
SQL (0.1ms) RELEASE SAVEPOINT active_record_1
Company Load (0.2ms) SELECT * FROM `companies` WHERE (`companies`.`id` = 3)
User Load (0.3ms) SELECT * FROM `users` ORDER BY users.id DESC LIMIT 1
USER!!: #<User id: 1, login: "user", email: "[email protected]", crypted_password: "34b9130e29b9e32f707398dfdee8bb5d90dc30409cf3b59f65a...", password_salt: "na9MHgzdBiL8tFmsGwnI", persistence_token: "ecc763fb6656c60eb3415e6aa786425b0d93d0e876293537780...", login_count: nil, last_request_at: nil, last_login_at: nil, current_login_at: nil, last_login_ip: nil, current_login_ip: nil, created_at: "2011-02-03 22:54:49", updated_at: "2011-02-03 22:54:49", name: "Aric Smith", perishable_token: "QWA4qtheEuCn2vwUzLF6", role: nil, active: true, wanted_company_id: nil, phone: nil, current_company_id: nil>
Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-04 01:54:49) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Rendered partials/_message (1.3ms)
Rendered partials/_ajax_loader (0.6ms)
Completed in 63ms (View: 41, DB: 21) | 200 OK [http://www.example.com/login]
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
User Columns (0.7ms) SHOW FIELDS FROM `users`
User Load (0.3ms) SELECT * FROM `users` ORDER BY users.id DESC LIMIT 1
USER!!: nil
Processing UserSessionsController#create (for 127.0.0.1 at 2011-02-04 01:54:49) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "login"=>"user", "password"=>"[FILTERED]"}, "action"=>"create", "controller"=>"user_sessions"}
User Load (0.3ms) SELECT * FROM `users` WHERE (LOWER(`users`.login) = 'user') LIMIT 1
Rendering template within layouts/application
Rendering user_sessions/new
Rendered partials/_message (0.2ms)
Rendered partials/_ajax_loader (0.1ms)
Completed in 29ms (View: 10, DB: 2) | 200 OK [http://www.example.com/user_session]
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment